Skip to content
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

Bug: "Okta direct auth API grants" are not valid OAuthGrantType #396

Open
Interperle opened this issue Apr 12, 2024 · 3 comments
Open

Bug: "Okta direct auth API grants" are not valid OAuthGrantType #396

Interperle opened this issue Apr 12, 2024 · 3 comments

Comments

@Interperle
Copy link

If there's an application that has one of the "Okta direct auth API grants" activated and you're trying to fetch it, you're getting the error, f'{GRANT_TYPE_NAME}' is not a valid OAuthGrantType.

That affects, especially the "list_applications" method.

To fix this the OAuthGrantType enum must be extended by:
OTP = "urn:okta:params:oauth:grant-type:otp", "URN:OKTA:PARAMS:OAUTH:GRANT-TYPE:OTP"
OOB = "urn:okta:params:oauth:grant-type:oob", "URN:OKTA:PARAMS:OAUTH:GRANT-TYPE:OOB"
MFA_OTP = "http://auth0.com/oauth/grant-type/mfa-otp", "HTTP://AUTH0.COM/OAUTH/GRANT-TYPE/MFA-OTP"
MFA_OOB = "http://auth0.com/oauth/grant-type/mfa-oob", "HTTP://AUTH0.COM/OAUTH/GRANT-TYPE/MFA-OOB"

@Interperle
Copy link
Author

Already added Pull Request to fix this bug. Please review and merge as soon as possible before these Grant Types are deployed in Okta Prod.

@blind-coder
Copy link

Running into this as well, thanks for the PR, Interperle.
Okta, please merge ASAP!

@bryanapellanes-okta
Copy link
Contributor

@Interperle Thank you for reporting this! I've entered an internal ticker for tracking, and I will review the PR you've submitted to ensure no regressions are introduced.

OKTA-733531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants