Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultIssuerName = "kubesphere"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Issuer ¶
type Issuer interface { // IssueTo issues a token a User, return error if issuing process failed IssueTo(user user.Info, tokenType TokenType, expiresIn time.Duration) (string, error) // Verify verifies a token, and return a user info if it's a valid token, otherwise return error Verify(string) (user.Info, TokenType, error) }
Issuer issues token to user, tokens are required to perform mutating requests to resources
Click to show internal directories.
Click to hide internal directories.