Documentation ¶
Index ¶
- Constants
- type OAuth2TokenIntrospection
- func (OAuth2TokenIntrospection) CaddyModule() caddy.ModuleInfo
- func (o *OAuth2TokenIntrospection) Provision(ctx caddy.Context) error
- func (o OAuth2TokenIntrospection) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (o *OAuth2TokenIntrospection) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (o *OAuth2TokenIntrospection) Validate() error
Constants ¶
View Source
const BearerTokenAuthenticationStrategy = "bearer_token"
View Source
const BearerTokenLocation = "bearer_token"
View Source
const ClientCredentialsAuthenticationStrategy = "client_credentials"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth2TokenIntrospection ¶
type OAuth2TokenIntrospection struct { TokenLocation string `json:"token_location"` IntrospectionEndpoint string `json:"introspection_endpoint"` IntrospectionAuthenticationStrategy string `json:"introspection_authentication_strategy"` IntrospectionClientID string `json:"introspection_client_id"` IntrospectionClientSecret string `json:"introspection_client_secret"` IntrospectionBearerToken string `json:"introspection_bearer_token"` IntrospectionTimeout int `json:"introspection_timeout"` InboundHeaders map[string]string `json:"inbound_headers"` // contains filtered or unexported fields }
OAuth2TokenIntrospection is a Caddy http.handlers Module for authorizing requests via OAuth2 Token Introspection
func (OAuth2TokenIntrospection) CaddyModule ¶
func (OAuth2TokenIntrospection) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*OAuth2TokenIntrospection) Provision ¶
func (o *OAuth2TokenIntrospection) Provision(ctx caddy.Context) error
Provision sets up the module.
func (OAuth2TokenIntrospection) ServeHTTP ¶
func (o OAuth2TokenIntrospection) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
ServeHTTP implements caddyhttp.MiddlewareHandler.
func (*OAuth2TokenIntrospection) UnmarshalCaddyfile ¶
func (o *OAuth2TokenIntrospection) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
func (*OAuth2TokenIntrospection) Validate ¶
func (o *OAuth2TokenIntrospection) Validate() error
Validate validates that the module has a usable config.
Click to show internal directories.
Click to hide internal directories.