Skip to content

Authentication popup in ionic2 #261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
olostan opened this issue Jun 21, 2016 · 4 comments
Closed

Authentication popup in ionic2 #261

olostan opened this issue Jun 21, 2016 · 4 comments

Comments

@olostan
Copy link

olostan commented Jun 21, 2016

I had configured authentication and it was working before updating to 2.0.0-beta.1 (sdk 3.0). All plugins are installed (inappbrowser).

But when I am calling this.af.auth.login() nothing is shown - no popup, no error. However when I call window.open I do see popup.

Do Angularfire/Firebase use something different from window.open to open auth popup?

@olostan
Copy link
Author

olostan commented Jun 21, 2016

Seems it's Firebase SDK problem. I've added extra tracings and got this error:
Uncaught Error: This operation is not supported in the environment this application is running on. "location.protocol" must be http or https.

But in hybrid app I have 'file://' protocol... Can someone forward me to correct repository there I can file this issue?

@davideast
Copy link
Collaborator

See #243. No fix yet, but we're working on it.

@jamesmart77
Copy link

Was this every fixed? Currently running into this issue with oAuth for google sign in

@patrickmichalina
Copy link

I found the redirect method to work better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants