tokens

package
v2.0.0-alpha14+incompa... Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CookieName      = "R_SESS"
	AuthHeaderName  = "Authorization"
	AuthValuePrefix = "Bearer"
	BasicAuthPrefix = "Basic"
)

Variables

This section is empty.

Functions

func ConvertTokenResource

func ConvertTokenResource(schema *types.Schema, token v3.Token) (map[string]interface{}, error)

func CreateTokenCR

func CreateTokenCR(k8sToken *v3.Token) (v3.Token, error)

func GenerateNewLoginToken

func GenerateNewLoginToken(userID string, userPrincipal v3.Principal, groupPrincipals []v3.Principal, providerInfo map[string]string, ttl int, description string) v3.Token

func GetTokenAuthFromRequest

func GetTokenAuthFromRequest(req *http.Request) string

func IsNotExpired

func IsNotExpired(token v3.Token) bool

func NewAPIHandler

func NewAPIHandler(ctx context.Context, mgmtCtx *config.ManagementContext) (http.Handler, error)

func NewTokenAPIServer

func NewTokenAPIServer(ctx context.Context, mgmtCtx *config.ManagementContext) error

func SplitTokenParts

func SplitTokenParts(tokenID string) (string, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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