# Packages

No description provided by the author
No description provided by the author

# Functions

AuditLogWithTokenInfo logs message related to particular SPIAccessToken into audit logger.
BypassHandler is a Handler that redirects a request that has URL with certain prefix to a bypassHandler all remaining requests are redirected to mainHandler.
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.
CSPHandler is a Handler that writes into response a CSP headers allowing inline styles, images from redhat domain, and denying everything else, including framing.
HandleUpload returns Handler implementation that is relied on provided TokenUploader to persist provided credentials for some concrete SPIAccessToken.
HttpServiceInstrumentMetricHandler is a http.Handler that collects statistical information about incoming HTTP request and store it in prometheus.Registerer.
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
No description provided by the author
OkHandler is a Handler implementation that responds only with http.StatusOK.

# Variables

No description provided by the author
HttpServiceRequestCountMetric is the metric that collects the request counts for OAuth Service.

# Structs

AuthenticateRoute route for /oauth/authenticate requests.
No description provided by the author
CallbackRoute route for /oauth/callback requests.
No description provided by the author
Router holds service provider controllers and is responsible for providing matching controller for incoming requests.
RouterConfiguration configuration needed to create new Router.
No description provided by the author
No description provided by the author

# Interfaces

Controller implements the OAuth flow.
StateStorage aims to provide a link between SPI's state and OAuth state.
TokenUploader is used to permanently persist credentials for the given token.

# Type aliases

UploadFunc used to provide anonymous implementation of TokenUploader.