question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for authWithOAuthRedirect

See original GitHub issue

Is there any reason why authWithOAuthRedirect is not supported in emberfire? If none, then I think it should be added as a fallback when authWithOAuthPopup doesn’t work.

As said in the Firebase docs:

Browser popups and redirects are not available on all platforms or browser environments. Popups are not available in Chrome for iOS, iOS Preview Panes, or local, file:// URLs. Redirects are not available in PhoneGap / Cordova, or local, file:// URLs. Therefore, it is recommended that you use a combination of both authentication methods to cover all environments.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
tstirratcommented, Dec 19, 2015

#344 adds the redirect functionality

this.get('session').open('firebase', { provider: 'google', redirect: true });
0reactions
tstirratcommented, Dec 21, 2015

I’m giving the ability to programatically select redirects. The rest is up to the developer to work out what works and what doesn’t for certain platforms.

Given that you lose app state, I don’t think an auto-fallback option is doable – it does not have feature parity with popups.

Use redirect: true at your own peril. The only reason I added it, is so that you don’t need to manually get the ref and call the function yourself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Authorization Response - OAuth 2.0 Simplified
Once the user has finished logging in and approving the request, the authorization server is ready to redirect the user back to the...
Read more >
Authenticating and authorizing through a redirect URL - IBM
If you use methods for authentication that are not supported by API Connect, you can redirect users to a suitable URL at which...
Read more >
Using OAuth 2.0 for Web Server Applications | Authorization
Obtaining OAuth 2.0 access tokens · Your application identifies the permissions it needs. · Your application redirects the user to Google along ...
Read more >
Prevent Attacks and Redirect Users with OAuth 2.0 State ...
Describes how to use the state parameter in authentication requests to help prevent CSRF attacks and restore state.
Read more >
An in-depth look at the OAuth2 redirect flow | by Pedro Oliveira
OAuth supports different types of workflows. The Authorization Code Grant ... The next step is to install and configure the omniauth gem.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found