Hi Lucas, the code i'm using to login against this api is:

 NSURL* projectsURL = [NSURL

                    URLWithString:@"http://localhost:8080/prestashop_1.5.4.1/prestashop/api/"];

authModule = [authenticator auth:^(id<AGAuthConfig> config){

        

        [config setName:@"api"];

        [config setBaseURL:projectsURL];

    }];

I just missed the loginEndPoint message.


Thanks



On Tue, Jun 4, 2013 at 3:14 PM, Lucas Holmquist <lholmqui@redhat.com> wrote:
Hello,

Do you happen to have a snippet of the code you are running.

By default, an authenticator's login method is at auth/login[1],  but that can be overridden( this also applies to logout and enroll )

so something like this:

 _restAuthModule = [authenticator auth:^(id<AGAuthConfig> config) {
            [config name:@"restAuthMod"];
            [config loginEndpoint:@"thing"];
            [config baseURL:projectsURL];
        }];

-Luke

[1] https://github.com/aerogear/aerogear-ios/blob/master/AeroGear-iOS/AeroGear-iOS/security/AGAuthConfiguration.m#L37

On Jun 4, 2013, at 1:34 PM, marcelo <marcpiresrj@gmail.com> wrote:

Hi people, i'm working on an app using AeroGear and having a problem with the
authentication. When trying to login to an API http://host/api using
authenticator, on the Xcode console I see that it's trying to authenticate
against http://host/api/auth/login.

How can specify that my login endpoint is host/api and not
host/api/auth/login. I'm using the PrestaShop webservice.

Thanks in advance.



--
View this message in context: http://aerogear-dev.1069024.n5.nabble.com/Authenticator-tp2982.html
Sent from the aerogear-dev mailing list archive at Nabble.com.
_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--
http://about.me/marcelo_pires