Please support OAuth providers with @Authorized
See original GitHub issueIt would be nice to if we can get some nicer out of the box support or some examples of how to support OAuth providers.
OAuth providers are covered in passport.js who currently support 500+ providers known as strategies. But this would require us using @UseBefore(passport.authenticate(string))
and not the @Authorized()
middleware.
The question:
What are your recommendations for using @Authorized()
with third party OAuth providers like Facebook / Google?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Connect Apps to Generic OAuth2 Authorization Servers - Auth0
Connect Apps to Generic OAuth2 Authorization Servers ... The most common identity providers are available in Auth0's Dashboard and in the Auth0 Marketplace....
Read more >Using OAuth 2.0 for Web Server Applications | Authorization
If prompted, read and accept the API's Terms of Service. Create authorization credentials. Any application that uses OAuth 2.0 to access Google ...
Read more >Configure GitLab as an OAuth 2.0 authentication identity ...
Scroll down to the Authorized applications section. The GitLab OAuth 2 applications support scopes, which allow various actions that any given application ...
Read more >What is OAuth and How Does it Work? - TechTarget
Learn about OAuth 2.0 (Open Authorization), an open protocol for token-based ... OAuth 1.0's consumer, service provider and user become client, ...
Read more >Using OAuth authentication with your application - Zendesk help
This flow is called the authorization code grant flow because you have to get an authorization code before you can request an access...
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 Free
Top 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
@gruckion, it can be implemented with next configuration:
Then you’ll be able to use both
@Authorized()
and@CurrentUser
decorators.However
@UseBefore(passport.authenticate(string))
is not so bad as well.This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.