-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconstants.go
73 lines (58 loc) · 1.96 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* Copyright contributors to the IBM Security Verify Operator project
*/
package main
/*****************************************************************************/
/*
* Annotation keys.
*/
const appNameKey = "verify.ibm.com/app.name"
const appUrlKey = "verify.ibm.com/app.url"
const crNameKey = "verify.ibm.com/cr.name"
const consentKey = "verify.ibm.com/consent.action"
const protocolKey = "verify.ibm.com/protocol"
const idTokenKey = "verify.ibm.com/idtoken.hdr"
const debugLevelKey = "verify.ibm.com/debug.level"
/*
* Secret keys.
*/
const productKey = "product"
const clientNameKey = "client_name"
const clientIdKey = "client_id"
const clientSecretKey = "client_secret"
const discoveryEndpointKey = "discovery_endpoint"
const secretNamePrefix = "ibm-security-verify-client-"
const productName = "ibm-security-verify"
/*
* Registration constants.
*/
const defaultConsentAction = "always_prompt"
const defaultProtocol = "https"
/*
* Session constants.
*/
const maxCacheSize = 32752
const sessionCookieName = "verify-session"
const sessionStateKey = "state"
const sessionUserKey = "user"
const sessionIdTokenKey = "identity"
const sessionUrlKey = "original-url"
const expiryKey = "expires"
/*
* HTTP server constants.
*/
const httpsPort = 7443
const defSessLifetime = 3600
const checkUri = "/check"
const authUri = "/auth"
const loginUri = "/login"
const logoutUri = "/logout"
const urlArg = "url"
const namespaceHdr = "X-Namespace"
const verifySecretHdr = "X-Verify-Secret"
const urlRootHdr = "X-URL-Root"
const logoutRedirectHdr = "X-Logout-Redirect"
const sessLifetimeHdr = "X-Session-Lifetime"
const debugLevelHdr = "X-Debug-Level"
const idTokenHdr = "x_identity"
/*****************************************************************************/