-
Notifications
You must be signed in to change notification settings - Fork 13
/
constants.go
47 lines (37 loc) · 1.22 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
47
package oauth
// Provider types
const (
Generic ProviderType = iota + 1
Okta
KeyCloak
)
// Provider type string const
const (
TypeGeneric = "generic"
TypeOkta = "okta"
TypeKeycloak = "keycloak"
)
const (
defaultServerName = "OAuth server"
hdrAuthorization = "Authorization"
hdrContentType = "Content-Type"
mimeApplicationFormURLEncoded = "application/x-www-form-urlencoded"
mimeApplicationJSON = "application/json"
GrantTypeAuthorizationCode = "authorization_code"
GrantTypeImplicit = "implicit"
GrantTypeClientCredentials = "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"
metaScope = "scope"
metaClientAssertionType = "client_assertion_type"
metaClientAssertion = "client_assertion"
TLSClientAuthSubjectDN = "tls_client_auth_subject_dn"
TLSClientAuthSanDNS = "tls_client_auth_san_dns"
TLSClientAuthSanEmail = "tls_client_auth_san_email"
TLSClientAuthSanIP = "tls_client_auth_san_ip"
TLSClientAuthSanURI = "tls_client_auth_san_uri"
)