You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a bit stuck with implementing this lib in my project.
Trying to debug it locally using ionic serve => using the OauthBrowser.
setup is pretty simple:
import {Facebook, Google} from 'ng2-cordova-oauth/core';
//replace for build!!!
import {OauthCordova} from 'ng2-cordova-oauth/platform/cordova'
import {OauthBrowser} from 'ng2-cordova-oauth/platform/browser'
@Injectable()
export class AuthServiceProvider {
private oauth = new OauthBrowser();
private fBprovider = new Facebook({
clientId: "*620872*********",
appScope: ['email']
});
constructor(public http: Http, @Inject(APP_CONFIG) private config: IAppConfig) {
}
fbLogin() {
return this.oauth.logInVia(this.fBprovider);
}
}
Browser window is opened and i receive an access token in callback url, however it seems like the callback isn't getting processed by OauthBrowser, as in browser i'm getting error:
This site can’t be reached
localhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
I don't have firewalls / other servers running.
Have http://localhost/callback and https://localhost/callback in Valid OAuth redirect URIs FB app's config.
config:
@ionic/cli-utils : 1.12.0
ionic (Ionic CLI) : 3.12.0
global packages:
cordova (Cordova CLI) : not installed
local packages:
@ionic/app-scripts : 2.1.3
Cordova Platforms : none
Ionic Framework : ionic-angular 3.6.0
System:
Node : v6.11.0
npm : 5.3.0
OS : Windows 10
Why is this possibly happening?
The text was updated successfully, but these errors were encountered:
Hi, I have the same issue and the problem is that the browser avoid the access to the popup.location.href value due to cross-origin errror: SecurityError: Uncaught DOMException: Blocked a frame with origin "http://localhost:8100" from accessing a cross-origin frame.
So that it is impossible to read the value of the callback url, and than the result is that the popup is never close and the callback url parameters are never read.
Hi!
I'm a bit stuck with implementing this lib in my project.
Trying to debug it locally using
ionic serve
=> using theOauthBrowser
.setup is pretty simple:
Browser window is opened and i receive an access token in callback url, however it seems like the callback isn't getting processed by
OauthBrowser
, as in browser i'm getting error:I don't have firewalls / other servers running.
Have
http://localhost/callback
andhttps://localhost/callback
inValid OAuth redirect URIs
FB app's config.config:
Why is this possibly happening?
The text was updated successfully, but these errors were encountered: