Documentation ¶
Index ¶
Constants ¶
View Source
const ( AppClientID = "numaflow-server-app" StateCookieName = "numaflow-oauthstate" StateCookieMaxAge = 60 * 5 UserIdentityCookieName = "numaflow.token" UserIdentityCookieMaxAge = 60 * 60 * 8 // 8 hours LoginCookieName = "numaflow-login" NumaflowAdminUsername = "admin" NumaflowAccountsSecret = "numaflow-server-secrets" NumaflowAccountsConfigMap = "numaflow-server-local-user-config" NumaflowServerSecretKey = "server.secretkey" TokenIssuer = "numaflow-server" AdminInitialPasswordHashKey = "admin.initial-password" AdminPasswordHashKey = "admin.password" AdminEnabledKey = "admin.enabled" AccountUsernameSuffix = "enabled" AccountPasswordSuffix = "password" JWTCookieName = "jwt" JWTCookieMaxAge = 60 * 60 * 8 // 8 hours NumaflowDexServerAddr = "https://numaflow-dex-server:5556/dex" )
Variables ¶
This section is empty.
Functions ¶
func JoinCookies ¶
JoinCookies combines chunks of cookie based on Key as prefix. It returns cookie Value as string. cookieString is of format key1=value1; key2=value2; key3=value3 first chunk will be of format numaflow.token=<numberOfChunks>:token; attributes
Types ¶
type IdentityCookie ¶
func MakeCookieMetadata ¶
func MakeCookieMetadata(key, value string) ([]IdentityCookie, error)
MakeCookieMetadata generates a string representing a Web cookie. Yum!
type InvalidCookieError ¶
type InvalidCookieError struct {
Key string
}
func (*InvalidCookieError) Error ¶
func (e *InvalidCookieError) Error() string
Click to show internal directories.
Click to hide internal directories.