Skip to content

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

@Interperle

Description

@Interperle

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"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions