Documentation ¶
Index ¶
- Constants
- func ConvertTokenResource(schema *types.Schema, token v3.Token) (map[string]interface{}, error)
- func CreateTokenCR(k8sToken *v3.Token) (v3.Token, error)
- func GenerateNewLoginToken(userID string, userPrincipal v3.Principal, groupPrincipals []v3.Principal, ...) v3.Token
- func GetTokenAuthFromRequest(req *http.Request) string
- func IsNotExpired(token v3.Token) bool
- func NewAPIHandler(ctx context.Context, mgmtCtx *config.ManagementContext) (http.Handler, error)
- func NewTokenAPIServer(ctx context.Context, mgmtCtx *config.ManagementContext) error
- func SplitTokenParts(tokenID string) (string, string)
Constants ¶
View Source
const ( CookieName = "R_SESS" AuthHeaderName = "Authorization" AuthValuePrefix = "Bearer" BasicAuthPrefix = "Basic" )
Variables ¶
This section is empty.
Functions ¶
func ConvertTokenResource ¶
func GenerateNewLoginToken ¶
func GetTokenAuthFromRequest ¶
func IsNotExpired ¶
func NewAPIHandler ¶
func NewTokenAPIServer ¶
func NewTokenAPIServer(ctx context.Context, mgmtCtx *config.ManagementContext) error
func SplitTokenParts ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.