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

Twitter Redirection Issue #264

Closed technotip closed 8 years ago

technotip commented 8 years ago

Twitter doesn't take http://localhost/callback as its callback URL.

I used http://127.0.0.1/callback but still it's not working. When it redirects, it shows error on my IONIC app.

alexfradiani commented 8 years ago

Same here. When I run the $cordovaOauth.twitter(... call all I get is a log in console that says "log". Completely blind about this, need some help.

nraboy commented 8 years ago

@technotip you cannot use 127.0.0.1, it must be localhost or you must override the url in an optional parameter.

I've tested Twitter recently and it works fine. If you'd like support please refer to this:

https://github.com/nraboy/ng-cordova-oauth#support

technotip commented 8 years ago

@nraboy, I've even used localhost. In both cases the redirected page gets stuck for some seconds ..! Please see the screenshot I've attached with this message.

screenshot_20160701-152556 1

alexfradiani commented 8 years ago

For the callback issue... I used a tinyurl instead, is working now.

daraul commented 8 years ago

I tried this with a tinyurl, and without (I'm also using firebase in the same app), and the error page shows up for a second, before returning the response and proceeding as normal. Not necessarily a problem, but some of my users might wonder what that is.

My $ bower list:

├─┬ angular-animate#1.5.3 (latest is 1.5.9-build.4996+sha.e50e91c) │ └── angular#1.5.3 (latest is 1.5.9-build.4996+sha.e50e91c) ├─┬ angular-sanitize#1.5.3 (latest is 1.5.9-build.4996+sha.e50e91c) │ └── angular#1.5.3 ├─┬ angular-ui-router#0.2.13 (latest is 1.0.0-beta.1) │ └── angular#1.5.3 (1.5.9-build.4996+sha.e50e91c available) ├─┬ angularfire#2.0.1 │ ├── angular#1.5.3 (1.5.9-build.4996+sha.e50e91c available) │ └── firebase#3.2.1 (3.3.0 available) ├── hello#1.13.4 extraneous ├── ionic not installed ├── jsSHA#1.6.0 (latest is 2.2.0) ├── ng-cordova-oauth#0.2.10 ├─┬ ngCordova#0.1.27-alpha │ └── angular#1.5.3 (1.5.9-build.4996+sha.e50e91c available) └── platform.js#1.3.1

If I should include any other information, please let me know.

mariomka commented 8 years ago

Same problem here. "Webpage not available" is shown a few seconds before is closed and application continues.

mariomka commented 8 years ago

Ok, just use any online uri as "redirect_uri" option to avoid the message...

daraul commented 8 years ago

I added my firebase URL as the redirect_uri option and that worked. Now I don't have localhost/callback in either my twitter app or in my ionic app itself, though. The docs mentioned that that is essential. Will test further to see if there are any problems

nikmahes commented 7 years ago

I added my firebase URL as the redirect_uri but getting similar error page.

whatsapp image 2017-01-18 at 9 40 31 pm

Anyone else faced similar issue ?