common

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

func JoinCookies(key string, cookieList []*http.Cookie) (string, error)

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

type IdentityCookie struct {
	Key   string
	Value string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL