forked from louketo/louketo-proxy
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconstants.go
54 lines (46 loc) · 1.54 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
48
49
50
51
52
53
54
package main
type contextKey int8
const (
envPrefix = "PROXY_"
// defaults proxy endpoints
authorizationURL = "/authorize"
callbackURL = "/callback"
expiredURL = "/expired"
healthURL = "/health"
loginURL = "/login"
logoutURL = "/logout"
metricsURL = "/metrics"
tokenURL = "/token"
debugURL = "/debug/pprof"
refreshURL = "/refresh"
traceURL = "/trace"
// default claims used to analyze access token
claimAudience = "aud"
claimPreferredName = "preferred_username"
claimRealmAccess = "realm_access"
claimResourceAccess = "resource_access"
claimResourceRoles = "roles"
claimGroups = "groups"
// default cookies names
accessCookie = "kc-access"
refreshCookie = "kc-state"
requestURICookie = "request_uri"
requestStateCookie = "OAuth_Token_Request_State"
unsecureScheme = "http"
secureScheme = "https"
anyMethod = "ANY"
allRoutes = "/*"
_ contextKey = iota
contextScopeName
jsonMime = "application/json; charset=utf-8"
headerXForwardedFor = "X-Forwarded-For"
headerXRealIP = "X-Real-IP"
authorizationHeader = "Authorization"
versionHeader = "X-Auth-Proxy-Version"
headerXContentTypeOptions = "X-Content-Type-Options"
headerXXSSProtection = "X-XSS-Protection"
headerXFrameOptions = "X-Frame-Options"
headerXSTS = "X-Strict-Transport-Security"
headerXPolicy = "X-Content-Security-Policy"
authorizationType = "Bearer"
)