Add support for authWithOAuthRedirect
See original GitHub issueIs 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:
- Created 8 years ago
- Comments:8 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
#344 adds the redirect functionality
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.