oauth2

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorizeParams added in v1.13.0

func GetAuthorizeParams(authorizeParams string) ([]rp.URLParamOpt, error)

Types

type OpenVPN added in v1.8.0

type OpenVPN interface {
	AcceptClient(logger *slog.Logger, client state.ClientIdentifier, username string)
	DenyClient(logger *slog.Logger, client state.ClientIdentifier, reason string)
}

type Provider added in v1.3.0

type Provider struct {
	rp.RelyingParty

	OIDC oidcProvider
	// contains filtered or unexported fields
}

func New added in v1.13.0

func New(logger *slog.Logger, conf config.Config, storageClient *storage.Storage) *Provider

New returns a Provider instance.

func (*Provider) ClientDisconnect added in v1.13.0

func (p *Provider) ClientDisconnect(clientID uint64, logger *slog.Logger)

ClientDisconnect purges the refresh token from store.

func (*Provider) Discover added in v1.13.0

func (p *Provider) Discover(openvpn OpenVPN) error

Discover initiate the discovery of OIDC provider.

func (*Provider) Handler added in v1.13.0

func (p *Provider) Handler() *http.ServeMux

func (*Provider) RefreshClientAuth added in v1.13.0

func (p *Provider) RefreshClientAuth(clientID uint64, logger *slog.Logger) (bool, error)

RefreshClientAuth initiate a non-interactive authentication against the sso provider.

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

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