[aerogear-dev] Authenticator

Lucas Holmquist lholmqui at redhat.com
Tue Jun 4 14:14:38 EDT 2013


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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130604/2e3daa65/attachment.html 


More information about the aerogear-dev mailing list