-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.go
More file actions
44 lines (37 loc) · 967 Bytes
/
constants.go
File metadata and controls
44 lines (37 loc) · 967 Bytes
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
package oidcsdk
const (
GrantAuthorizationCode = "authorization_code"
GrantImplicit = "implicit"
GrantResourceOwnerPassword = "password"
GrantClientCredentials = "client_credentials"
GrantRefreshToken = "refresh_token"
)
const (
ScopeOpenid = "openid"
ScopeProfile = "profile"
ScopeEmail = "email"
ScopeAddress = "address"
ScopeOfflineAccess = "offline_access"
)
const (
ResponseTypeCode = "code"
ResponseTypeToken = "token"
ResponseTypeIdToken = "id_token"
)
const (
ResponseModeQuery = "query"
ResponseModeFragment = "fragment"
ResponseModeFormPost = "form"
)
const (
ContentTypeUrlEncodedForm = "application/x-www-form-urlencoded"
ContentTypeJson = "application/json"
ContentTypeHtml = "text/html"
)
const (
HeaderContentType = "Content-Type"
HeaderAuthorization = "Authorization"
)
const (
UrlOidcDiscovery = "/.well-known/openid-configuration"
)