Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IdentityHeaderMissingError = util.NewUnauthenticatedError( errors.New("Request header error: there is no user identity header."), "Request header error: there is no user identity header.", )
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
func GetAuthenticators ¶
func GetAuthenticators(tokenReviewClient client.TokenReviewInterface) []Authenticator
type HTTPHeaderAuthenticator ¶
type HTTPHeaderAuthenticator struct {
// contains filtered or unexported fields
}
func NewHTTPHeaderAuthenticator ¶
func NewHTTPHeaderAuthenticator(header, prefix string) *HTTPHeaderAuthenticator
func (*HTTPHeaderAuthenticator) GetUserIdentity ¶
func (ha *HTTPHeaderAuthenticator) GetUserIdentity(ctx context.Context) (string, error)
type TokenReviewAuthenticator ¶
type TokenReviewAuthenticator struct {
// contains filtered or unexported fields
}
func NewTokenReviewAuthenticator ¶
func NewTokenReviewAuthenticator(tokenHeader, tokenPrefix string, audiences []string, tokenReviewClient client.TokenReviewInterface) *TokenReviewAuthenticator
func (*TokenReviewAuthenticator) GetUserIdentity ¶
func (tra *TokenReviewAuthenticator) GetUserIdentity(ctx context.Context) (string, error)
Click to show internal directories.
Click to hide internal directories.