<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello,</div><div><br></div><div>Do you happen to have a snippet of the code you are running.</div><div><br></div><div>By default, an authenticator's login method is at auth/login[1], but that can be overridden( this also applies to logout and enroll )</div><div><br></div><div>so something like this:</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: #4f8187">_restAuthModule</span> = [authenticator <span style="color: #31595d">auth</span>:^(<span style="color: #bb2ca2">id</span><<span style="color: #4f8187">AGAuthConfig</span>> config) {</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> [config <span style="color: #31595d">name</span>:<span style="color: #d12f1b">@"restAuthMod"</span>];</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> [config <span style="color: #31595d">loginEndpoint</span>:<span style="color: #d12f1b">@"thing"</span>];</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> [config <span style="color: #31595d">baseURL</span>:projectsURL];</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> }];</div></div><div><br></div><div>-Luke</div><div><br></div><div>[1] <a href="https://github.com/aerogear/aerogear-ios/blob/master/AeroGear-iOS/AeroGear-iOS/security/AGAuthConfiguration.m#L37">https://github.com/aerogear/aerogear-ios/blob/master/AeroGear-iOS/AeroGear-iOS/security/AGAuthConfiguration.m#L37</a></div><br><div><div>On Jun 4, 2013, at 1:34 PM, marcelo <<a href="mailto:marcpiresrj@gmail.com">marcpiresrj@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi people, i'm working on an app using AeroGear and having a problem with the<br>authentication. When trying to login to an API <a href="http://host/api">http://host/api</a> using<br>authenticator, on the Xcode console I see that it's trying to authenticate<br>against <a href="http://host/api/auth/login">http://host/api/auth/login</a>.<br><br>How can specify that my login endpoint is host/api and not<br>host/api/auth/login. I'm using the PrestaShop webservice.<br><br>Thanks in advance.<br><br><br><br>--<br>View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/Authenticator-tp2982.html">http://aerogear-dev.1069024.n5.nabble.com/Authenticator-tp2982.html</a><br>Sent from the aerogear-dev mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev<br></blockquote></div><br></body></html>