generated from fluffy-bunny/fluffycore-grpc-starterkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wellknown.go
49 lines (45 loc) · 1.42 KB
/
wellknown.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package models
const (
OAuth2TokenType_Bearer = "bearer"
OAuth2TokenType_JWT = "urn:ietf:params:oauth:token-type:jwt"
OAuth2TokenType_IDToken = "urn:ietf:params:oauth:token-type:id_token"
OAuth2TokenType_RefreshToken = "urn:ietf:params:oauth:token-type:refresh_token"
OAuth2TokenType_AccessToken = "urn:urn:ietf:params:oauth:token-type:access_token"
OAuth2GrantType_ClientCredentials = "client_credentials"
OAuth2GrantType_RefreshToken = "refresh_token"
OAuth2GrantType_TokenExchange = "urn:ietf:params:oauth:grant-type:token-exchange"
OAUTH2GrantType_AuthorizationCode = "authorization_code"
)
const (
ACRPassword = "urn:rage:password"
ACRIdpRoot = "urn:rage:idp:root"
ACR2FA = "urn:rage:loa:2fa"
ACRIdp = "urn:rage:loa:idp:{idp}"
ACRPasskey = "urn:rage:loa:passkey"
)
const (
AMRPassword = "pwd"
AMR2FA = "mfa"
AMRIdp = "idp"
AMRPasskey = "passkey"
)
const (
WellknownIdpRoot = "root"
WellknownIdpGoogle = "google"
WellknownIdpGithub = "github"
WellknownIdpMicrosoft = "microsoft"
WellknownIdpApple = "apple"
)
const (
ClaimTypeAcr = "acr"
ClaimTypeSub = "sub"
ClaimTypeIat = "iat"
ClaimTypeExp = "exp"
ClaimTypeNbf = "nbf"
ClaimTypeJti = "jti"
ClaimTypeIss = "iss"
ClainTypeAud = "aud"
ClaimTypeAzp = "azp"
ClaimTypeNonce = "nonce"
ClaimTypeAmr = "amr"
)