-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring Okta base url #1345
Comments
Thanks for this. So there was a change in #763. Are you suggesting it was wrong? @ohheyalanray as the PR author, do you have any comments on this? The changes were accepted after I reviewed this section https://github.com/okta/okta-auth-js#required-options |
I can also confirm that by adding the oauth2 to the domain is working as well. |
huh. should we revert #763 then? |
Maybe instead of https://developer.okta.com/docs/reference/api/oidc/#composing-your-base-url This would also make it consistent with |
ref. #1287 |
Just wanted to chime in that this also broke our Okta sign in. Okta expects the authorize URL to be |
Just wanted to give my two cents here... also affected. The current version is not working by default. As other suggested you could make OKTA_DOMAIN something like okta.com/oauth2 but it's feels definitely hackish... |
I did change the domain url, but still has problem to get it working. New Okta tenant with newly created application gives me error:
|
I had a similar issue with Okta. Turns out it was due to improperly assigned user: Okta was returning user back with an error code instead of authCode, but next-auth still tried to get the token (with authorization code equal to null), which in turn caused the Okta's complain. |
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
Closing as this issue is kinda old. Let's open a new one with a fresh, minimal reproduction, if it still exists. |
Describe the bug
Following the normal instructions, I get redirected to
https://dev-${my_app_id}.okta.com/v1/authorize
, which shows a 404 error. ChangingOKTA_DOMAIN
todev-${my_app_id}.okta.com/oauth2
fixes it. Should the Okta provider add the/oauth2
path?Steps to reproduce
Follow instructions for Okta provider
Expected behavior
Login should work
Screenshots or error logs
If applicable add screenshots or error logs to help explain the problem.
Additional context
Add any other context about the problem here.
Feedback
Documentation refers to searching through online documentation, code comments and issue history. The example project refers to next-auth-example.
The text was updated successfully, but these errors were encountered: