Support for OAuth Client Credentials Flow #804
Unanswered
bakejeyner
asked this question in
Help
Replies: 1 comment 1 reply
-
Have you found a solution? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Your question
I was wondering if there was existing support for the OAuth Client Credentials Flow. More specifically, to have the nextjs app act as
Your API
in this OAuth Client Credentials Flow Diagram.What are you trying to do
Every request coming into my nextjs app will have an access token found in the
Authorization
header of that request. I want next-auth to pull that access token off of the incoming request, verify the access token against its configured providers, and if valid convert the access token to a next-auth session for use throughout the nextjs app.Feedback
Documentation refers to searching through online documentation, code comments and issue history. The example project refers to next-auth-example.
I spent a couple of hours researching this use case but was unable to find directly relevant information. My best idea was to create a provider who asked for the
client_credentials
grant type, but even with an access token present on the incoming request next-auth would always ask me to sign into a provider.Beta Was this translation helpful? Give feedback.
All reactions