-
Notifications
You must be signed in to change notification settings - Fork 13
/
constants.go
46 lines (36 loc) · 1.03 KB
/
constants.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
package oauth
// Provider types
const (
Generic ProviderType = iota + 1
Okta
KeyCloak
)
// Provider type string const
const (
TypeGeneric = "generic"
TypeOkta = "okta"
TypeKeycloak = "keycloak"
)
// IDP Auth type string const
const (
IDPAuthTypeAccessToken = "accessToken"
IDPAuthTypeClient = "client"
)
const (
defaultServerName = "OAuth server"
hdrAuthorization = "Authorization"
hdrContentType = "Content-Type"
mimeApplicationFormURLEncoded = "application/x-www-form-urlencoded"
mimeApplicationJSON = "application/json"
grantAuthorizationCode = "authorization_code"
grantImplicit = "implicit"
grantClientCredentials = "client_credentials"
authResponseToken = "token"
authResponseCode = "code"
assertionTypeJWT = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
metaGrantType = "grant_type"
metaClientID = "client_id"
metaClientSecret = "client_secret"
metaClientAssertionType = "client_assertion_type"
metaClientAssertion = "client_assertion"
)