# Functions
AuditLog returns logger prepared with audit markers.
AuditLogWithTokenInfo logs message related to particular SPIAccessToken into audit logger.
AugmentConfiguration modifies the provided Kubernetes client configuration such that it uses bearer tokens stored in the context using the WithAuthFromRequestIntoContext or WithAuthIntoContext functions.
CallbackErrorHandler is a Handler implementation that responds with HTML page This page is a landing page after unsuccessfully completing the OAuth flow.
CallbackSuccessHandler is a Handler implementation that responds with HTML page This page is a landing page after successfully completing the OAuth flow.
CreateClient creates a new client based on the provided configuration.
ExtractTokenFromAuthorizationHeader extracts the token value from the authorization header assumed to be formatted as a bearer token.
FromConfiguration is a factory function to create instances of the Controller based on the service provider configuration.
HandleUpload returns Handler implementation that is relied on provided TokenUploader to persist provided credentials for some concrete SPIAccessToken.
No description provided by the author
No description provided by the author
No description provided by the author
MiddlewareHandler is a Handler that composed couple of different responsibilities.
No description provided by the author
No description provided by the author
OkHandler is a Handler implementation that responds only with http.StatusOK.
WithAuthFromRequestIntoContext looks into the provided HTTP request and stores the bearer token from that request's Authorization header into the returned context which is based on the provided context.
WithAuthIntoContext stores the provided bearer token into the returned context which is based on the provided context.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
Controller implements the OAuth flow.
TokenUploader is used to permanently persist credentials for the given token.
# Type aliases
AuthenticatingClient is just a typedef that advertises that it is safe to use the WithAuthIntoContext or WithAuthFromRequestIntoContext functions with clients having this type.
UploadFunc used to provide anonymous implementation of TokenUploader.