feat: Support other strategies
See original GitHub issueDoes graphql-passport
also supports other strategies like say passport-azure-ad with its BearerStrategy
?`
The documentation only mentions GraphQLLocalStrategy
, that’s why it’s unclear to me.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
10 Strategies To Build A Successful Cross-Functional Team
Cross functional teams maximize operational efficiency and productivity. Learn 10 strategies for building and managing a strong cross functional team.
Read more >The Secret to a Great Planning Process - First Round Review
Planning is hard because it's inherently different from other exercises your ... Developing execution plans that support the high-level strategy.
Read more >Operations Strategies 101 and 201 - Smartsheet
Discover the basics of operations strategies and how to write a strategic operations plan. Get pro insights on what the future might hold....
Read more >8 Best Customer Retention Strategies Your Business Should ...
Find out what are the Best Customer Retention Strategies Your Business Should Use in order to keep your customers more engaged.
Read more >4 Self-Care Strategies to Support Students
2. Pause for Mental Breaks. Another small way O'Brien-Richardson brings health and well-being into her classroom is by providing space for ...
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
This should be doable but I’ve never worked with the more advanced strategies. The
GraphQLLocalStrategy
is implemented but it would be awesome if all of the strategies passport provides could be available.Hey @DarkLite1, @PacomeRivier. Sorry for keeping you wait. The biggest pain that
graphql-passport
solves is local authentication with email and password. That’s what theGraphQLLocalStrategy
is for. Other strategies can be used in the normal way withpassport
.If you’re looking for an example you can see this blog post. Here is the final repository that combines the Facebook Strategy with local email/password.
If you don’t use local email/password to authenticate the only thing you might use from this package is the
buildContext
function as you can see here. This basically just copies some of the passport functions likeauthenticate
,login
,logout
and so on into the GraphQL context. So you might not necessarily need to use this package if you don’t use local email/password.