server

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL