copy and modify the routes test for the legacy server
This commit is contained in:
parent
c98291a6a7
commit
af2d2942a1
6 changed files with 390 additions and 17 deletions
|
@ -50,6 +50,16 @@ const (
|
|||
JWTTokenType TokenType = "urn:ietf:params:oauth:token-type:jwt"
|
||||
)
|
||||
|
||||
func (t GrantType) IsSupported() bool {
|
||||
for _, gt := range AllGrantTypes {
|
||||
if t == gt {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
var AllTokenTypes = []TokenType{
|
||||
AccessTokenType, RefreshTokenType, IDTokenType, JWTTokenType,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue