oauth2

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(logger *slog.Logger, oidcProvider *Provider, conf *config.Config, openvpnClient *openvpn.Client) *http.ServeMux

Types

type Provider added in v1.3.0

type Provider struct {
	rp.RelyingParty
	TokenValidator
}

func NewProvider added in v1.2.0

func NewProvider(logger *slog.Logger, conf *config.Config) (*Provider, error)

NewProvider returns a rp.RelyingParty instance

type TokenValidator added in v1.3.0

type TokenValidator interface {
	Validate(session *state.State, tokens *token.Tokens[*token.IDTokenClaims]) error
}

func NewTokenValidateProvider added in v1.3.0

func NewTokenValidateProvider(conf *config.Config) (TokenValidator, error)

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

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