nraboy / ng-cordova-oauth

AngularJS oauth library for use with Apache Cordova projects
https://www.thepolyglotdeveloper.com
MIT License
456 stars 199 forks source link

Fix : Redirection problem #297

Closed emrahtoy closed 7 years ago

emrahtoy commented 7 years ago

Instagram has got an issue with callback redirection ( via token based implicit authorization ). To prevent redirecting to "Dashboard" instead of callback uri we were have to check browser reference's Url and after all whole authorization processes done we have to send the user to authorization url (again). As the user already authorized will be redirected to callback uri.

nraboy commented 7 years ago

Just to confirm, you've tested this, correct?

If you confirm it is working I'll merge it.

Thanks,

emrahtoy commented 7 years ago

Yes, i have just used on a fresh project. The bug also mentioned at these pages : http://stackoverflow.com/questions/40234941/instagram-oauth-redirecting-to-instagram-dashboard http://stackoverflow.com/questions/40226215/instagram-auth-broken

nraboy commented 7 years ago

Thanks for contributing!