define GrantType constants in one place (#189)
This commit is contained in:
parent
c4d951cad2
commit
385d5c15da
2 changed files with 3 additions and 4 deletions
|
@ -157,7 +157,3 @@ const (
|
||||||
AuthMethodNone AuthMethod = "none"
|
AuthMethodNone AuthMethod = "none"
|
||||||
AuthMethodPrivateKeyJWT AuthMethod = "private_key_jwt"
|
AuthMethodPrivateKeyJWT AuthMethod = "private_key_jwt"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
GrantTypeImplicit GrantType = "implicit"
|
|
||||||
)
|
|
||||||
|
|
|
@ -24,6 +24,9 @@ const (
|
||||||
//GrantTypeTokenExchange defines the grant_type `urn:ietf:params:oauth:grant-type:token-exchange` used for the OAuth Token Exchange Grant
|
//GrantTypeTokenExchange defines the grant_type `urn:ietf:params:oauth:grant-type:token-exchange` used for the OAuth Token Exchange Grant
|
||||||
GrantTypeTokenExchange GrantType = "urn:ietf:params:oauth:grant-type:token-exchange"
|
GrantTypeTokenExchange GrantType = "urn:ietf:params:oauth:grant-type:token-exchange"
|
||||||
|
|
||||||
|
//GrantTypeImplicit defines the grant type `implicit` used for implicit flows that skip the generation and exchange of an Authorization Code
|
||||||
|
GrantTypeImplicit GrantType = "implicit"
|
||||||
|
|
||||||
//ClientAssertionTypeJWTAssertion defines the client_assertion_type `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`
|
//ClientAssertionTypeJWTAssertion defines the client_assertion_type `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`
|
||||||
//used for the OAuth JWT Profile Client Authentication
|
//used for the OAuth JWT Profile Client Authentication
|
||||||
ClientAssertionTypeJWTAssertion = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
|
ClientAssertionTypeJWTAssertion = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue