Documentation ¶
Index ¶
- Constants
- func ConvertTokenResource(schema *types.Schema, token v3.Token) (map[string]interface{}, error)
- func CreateTokenAndSetCookie(userID string, userPrincipal v3.Principal, groupPrincipals []v3.Principal, ...) error
- func GetTokenAuthFromRequest(req *http.Request) string
- func IsExpired(token v3.Token) bool
- func NewAPIHandler(ctx context.Context, apiContext *config.ScaledContext) (http.Handler, error)
- func NewLoginToken(userID string, userPrincipal v3.Principal, groupPrincipals []v3.Principal, ...) (v3.Token, error)
- func NewTokenAPIServer(ctx context.Context, apiContext *config.ScaledContext) error
- func SetTokenExpiresAt(token *v3.Token)
- func SplitTokenParts(tokenID string) (string, string)
- func StartPurgeDaemon(ctx context.Context, mgmt *config.ManagementContext)
Constants ¶
View Source
const ( CookieName = "R_SESS" AuthHeaderName = "Authorization" AuthValuePrefix = "Bearer" BasicAuthPrefix = "Basic" )
View Source
const (
UserIDLabel = "authn.management.cattle.io/token-userId"
)
Variables ¶
This section is empty.
Functions ¶
func ConvertTokenResource ¶
func CreateTokenAndSetCookie ¶
func GetTokenAuthFromRequest ¶
func NewAPIHandler ¶
func NewLoginToken ¶
func NewTokenAPIServer ¶
func NewTokenAPIServer(ctx context.Context, apiContext *config.ScaledContext) error
func SetTokenExpiresAt ¶
func SplitTokenParts ¶
func StartPurgeDaemon ¶
func StartPurgeDaemon(ctx context.Context, mgmt *config.ManagementContext)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.