Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExpiryClaim = Claim[Expiry]{ // contains filtered or unexported fields } // WorkspaceClaim is written by keycloak's MC_CUSTOMER script mapper, which strips the c: scope // prefix, so this carries the identifier rather than the scope. It is absent altogether where // the user holds no role on the workspace the token was asked for, which is NoWorkspace here. WorkspaceClaim = StringClaim[meshstack.Workspace]("MC_CUSTOMER") ScopeClaim = Claim[scope.Scopes]{ // contains filtered or unexported fields } PreferredUsernameClaim = StringClaim[string]("preferred_username") EmailClaim = StringClaim[string]("email") // ClientIdClaim is only on a token a client minted with its own credentials, such as an API key. ClientIdClaim = StringClaim[string]("client_id") )
Functions ¶
This section is empty.
Types ¶
type Claim ¶
type Claim[V any] struct { // contains filtered or unexported fields }
func StringClaim ¶
StringClaim reads a claim written as a JSON string, and is the zero value of V where the claim is absent or is not a string.
type JWT ¶
type JWT struct {
// contains filtered or unexported fields
}
func (JWT) MarshalText ¶
func (*JWT) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.