Auth0 Home Blog Docs

Phonegap callback url error

callback-urls
phonegap

#1

I am getting an error after I log in with the Hosted Login Pages on my phonegap application. The error is ‘The web page at https://myautho.auth0.com/login/callback could not be loaded because net::ERR_UNSAFE_REDIRECT’. This happens to username and password and also social log ins. My call back url as in the tutorial is , https://myautho.auth0.com/mobile and file:///android_asset/www/index.html.


#2

I’m assuming you’re referring to the Phonegap quickstart, if that’s the case then the only callback URL mentioned in it would be https://[your_domain].auth0.com/mobile. I did not find any mention of using file:///android_asset/www/index.html as a callback URL; it does mention using file://\* in CORS allowed origing, but not on callback URL’s. Another point is that the quickstart in question is community maintained and I have some doubts about if it’s strictly up to date as my expectation would be that it should be using something based on auth0-cordova library.


#3

Hi @jmangelo! I’m having problems with the phonegap login and right now the quickstart(https://auth0.com/docs/quickstart/native/phonegap) returns 404! I would love to see that back up again.
Thanks


#4