Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIKeyAuthenticator ¶
func NewAPIKeyAuthenticator(opts *Options) (authenticator.Request, error)
NewAPIKeyAuthenticator creates a request auth authenticator and returns it.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator according to the basic auth header information in the http request, treats the password as the APIKey of the OIDC server, requests the token review of the OIDC server, and returns user authentication information.
func (*Authenticator) AuthenticateRequest ¶ added in v1.7.0
func (a *Authenticator) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error)
AuthenticateRequest implements authenticator.Request.
Click to show internal directories.
Click to hide internal directories.