package
0.0.0-20201001093023-a8a8e01a6f5d
Repository: https://github.com/amsterdam/authz.git
Documentation: pkg.go.dev
# Functions
AccessTokenIssuer is an option that sets the iss property in access tokens.
AccessTokenLifetime is an option that sets the lifetime of access tokens.
AuthzProvider is an option that sets the given authorization provider for the handler instance.
Clients is an option that sets the given client mapping for the handler instance.
Handler returns an http.Handler that handles OAuth 2.0 requests.
IDProvider is an option that adds the given IdP to this handler.
JWKID is an option that sets the key id of the JSON Web Key to use for access tokens.
StateStorage is an option that sets the transient storage for the handler instance.
TraceHeader is an option that sets the name of the header that contains a request identifier.
# Interfaces
Authz contains an authorization provider's scopes and can map a user on scopes.
ClientMap defines OAuth 2.0 clients.
IDP defines an identity provider.
ScopeSet defines a set of scopes.
StateKeeper defines a storage engine used to store transient state data throughout the handler.
# Type aliases
Option is a handler setting that can be passed to Handler().