Documentation
¶
Overview ¶
Package server provides auth-specific ServerOption factories for github.com/dioad/net/http servers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OAuth2ValidatorHandler ¶
func OAuth2ValidatorHandler(v []oidc.ValidatorConfig) (nethttp.Middleware, error)
OAuth2ValidatorHandler returns a middleware that validates OAuth2 tokens using the provided configurations.
func WithOAuth2Validator ¶
func WithOAuth2Validator(v []oidc.ValidatorConfig) nethttp.ServerOption
WithOAuth2Validator returns a ServerOption that configures the server to validate OAuth2 tokens.
func WithServerAuth ¶
func WithServerAuth(cfg authhttp.ServerConfig) nethttp.ServerOption
WithServerAuth returns a ServerOption that configures the server to use the given authentication configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.