Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifySHA256Hash ¶
VerifySHA256Hash takes a key and compares it with stored hash, including its salt Directly taken from https://github.com/rancher/rancher/blob/4254eda21f13b9c16ca75bbd8269578eb938d549/pkg/auth/tokens/sha256.go#L31
Types ¶
type TokenRevoker ¶
type TokenRevoker struct { // Client is the client to be used to lookup/disable/delete tokens Client client.Client // Mode is the mode the Revoker operates in Mode Mode }
TokenRevoker handles the actual revoking of exposed tokens
func (*TokenRevoker) RevokeTokenByValue ¶
func (t *TokenRevoker) RevokeTokenByValue(tokenValue string, exceptedTokenNames map[string]struct{}) error
RevokeTokenByValue finds tokens which have the input value and revokes them (based on mode). Only works if token-hashing is disabled
Click to show internal directories.
Click to hide internal directories.