copy and modify the routes test for the legacy server

This commit is contained in:
Tim Möhlmann 2023-09-21 18:13:38 +03:00
parent c98291a6a7
commit af2d2942a1
6 changed files with 390 additions and 17 deletions

View file

@ -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,
}