How to implement Okta implicit-grant flow with Next Auth #2441
Unanswered
bramvanhoutte
asked this question in
Help
Replies: 1 comment
-
If it's not possible already, I don't think we are going to implement it, as it is not a recommended flow anymore. See: The error you are seeing comes from Okta and not from us, so it's clear that even they don't want you to use this flow. I wonder what requirements you have that would make this flow necessary, and why the current default (authorization code) flow wouldn't work? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Question 💬
Next auth supports configuring your grant types for the Okta provider. I have configure my program to work like this:
When I sign in, I get the following error from next-auth:
I can see that the next auth request still has
response_type=code
parameter set. So it seems that next-auth is behaving like it would for grant type "authorization_code".If I play around with the "authorizationUrl" parameter in the Okta provider configuration, I can get the request to return the token.
But then next auth doesn't know what to do with it an give me the following error:
I am 100% certain I have enabled the implicit flow in Okta.
How to reproduce ☕️
Set grant_type to 'implicit'
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions