package
0.1.459
Repository: https://github.com/openshift-online/ocm-sdk-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BearerFromContext extracts the bearer token of the user from the context.
ContextWithToken creates a new context containing the given token.
No description provided by the author
NewHandler creates a builder that can then be configured and used to create authentication handlers.
NewTransportWrapper creates a new builder that can then be used to configure and create a new authentication round tripper.
TokenFromContext extracts the JSON web token of the user from the context.

# Constants

No description provided by the author
No description provided by the author
Default values:.
Default values:.
#nosec G101.
No description provided by the author
Default values:.
Default values:.
No description provided by the author
No description provided by the author

# Variables

DefaultScopes is the ser of scopes used by default:.

# Structs

No description provided by the author
Handler is an HTTP handler that checks authentication using the JWT tokens from the authorization header.
HandlerBuilder contains the data and logic needed to create a new authentication handler.
TransportWrapper contains the data and logic needed to wrap an HTTP round tripper with another one that adds authorization tokens to requests.
TransportWrapperBuilder contains the data and logic needed to add to requests the authorization token.