-
Notifications
You must be signed in to change notification settings - Fork 550
/
constants.go
25 lines (20 loc) · 1 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
package auth
import "github.com/flyteorg/flyte/flytestdlib/contextutils"
const (
// OAuth2 Parameters
CsrfFormKey = "state"
AuthorizationResponseCodeType = "code"
DefaultAuthorizationHeader = "authorization"
BearerScheme = "Bearer"
IDTokenScheme = "IDToken"
// Add the -bin suffix so that the header value is automatically base64 encoded
UserInfoMDKey = "UserInfo-bin"
// https://tools.ietf.org/html/rfc8414
// This should be defined without a leading slash. If there is one, the url library's ResolveReference will make it a root path
OAuth2MetadataEndpoint = ".well-known/oauth-authorization-server"
// https://openid.net/specs/openid-connect-discovery-1_0.html
// This should be defined without a leading slash. If there is one, the url library's ResolveReference will make it a root path
OIdCMetadataEndpoint = ".well-known/openid-configuration"
ContextKeyIdentityContext = contextutils.Key("identity_context")
ScopeAll = "all"
)