auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DistrustClient added in v0.0.3

type DistrustClient struct {
	fosite.DefaultClient
	AllowGroups []string
	DenyGroups  []string
}

type InFlightRequest

type InFlightRequest struct {
	Nonce int
	Ar    fosite.AuthorizeRequester
}

type OIDCOption

type OIDCOption interface {
	// contains filtered or unexported methods
}

func WithPrivateKey

func WithPrivateKey(p *rsa.PrivateKey) OIDCOption

func WithSecret

func WithSecret(s []byte) OIDCOption

type OIDCProvider

type OIDCProvider struct {
	// contains filtered or unexported fields
}

func NewOIDC

func NewOIDC(path string, disc discourse.SSOConfig, clients map[string]fosite.Client, opts ...OIDCOption) *OIDCProvider

func (*OIDCProvider) RegisterHandlers

func (o *OIDCProvider) RegisterHandlers(r chi.Router)

Jump to

Keyboard shortcuts

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