Skip to content

Commit

Permalink
Merge pull request #2067 from okta/OKTA-748978-update-grant-type-oauth
Browse files Browse the repository at this point in the history
update app_oauth grant types
  • Loading branch information
duytiennguyen-okta committed Aug 20, 2024
2 parents 62a350e + ebb8817 commit fbbfb8b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions okta/resource_okta_app_oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ const (
tokenExchange = "urn:ietf:params:oauth:grant-type:token-exchange"
saml2Bearer = "urn:ietf:params:oauth:grant-type:saml2-bearer"
deviceCode = "urn:ietf:params:oauth:grant-type:device_code"
oob = "urn:okta:params:oauth:grant-type:oob"
otp = "urn:okta:params:oauth:grant-type:otp"
mfaOob = "http://auth0.com/oauth/grant-type/mfa-oob"
mfaOtp = "http://auth0.com/oauth/grant-type/mfa-otp"
ciba = "urn:openid:params:grant-type:ciba"
)

// Building out structure for the conditional validation logic. It looks like customizing the diff
Expand All @@ -51,6 +56,11 @@ var appRequirementsByType = map[string]*applicationMap{
tokenExchange,
deviceCode,
interactionCode,
oob,
otp,
mfaOob,
mfaOtp,
ciba,
},
},
"native": {
Expand All @@ -66,6 +76,10 @@ var appRequirementsByType = map[string]*applicationMap{
tokenExchange,
deviceCode,
interactionCode,
oob,
otp,
mfaOob,
mfaOtp,
},
},
"browser": {
Expand All @@ -77,6 +91,10 @@ var appRequirementsByType = map[string]*applicationMap{
tokenExchange,
deviceCode,
interactionCode,
oob,
otp,
mfaOob,
mfaOtp,
},
},
"service": {
Expand All @@ -87,6 +105,10 @@ var appRequirementsByType = map[string]*applicationMap{
tokenExchange,
deviceCode,
interactionCode,
oob,
otp,
mfaOob,
mfaOtp,
},
RequiredGrantTypes: []string{
clientCredentials,
Expand Down

0 comments on commit fbbfb8b

Please sign in to comment.