Documentation ¶
Index ¶
- func GetAuthorizeParams(authorizeParams string) ([]rp.URLParamOpt, error)
- type OpenVPN
- type Provider
- func (p *Provider) ClientDisconnect(ctx context.Context, logger *slog.Logger, client connection.Client)
- func (p *Provider) GetNonce(id string) string
- func (p *Provider) Handler() *http.ServeMux
- func (p *Provider) Initialize(ctx context.Context, openvpn OpenVPN) error
- func (p *Provider) RefreshClientAuth(logger *slog.Logger, client connection.Client) (bool, error)
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 Provider oidcProvider // contains filtered or unexported fields }
func New ¶ added in v1.13.0
func New(logger *slog.Logger, conf config.Config, storageClient *storage.Storage, httpClient *http.Client) *Provider
New returns a Provider instance.
func (*Provider) ClientDisconnect ¶ added in v1.13.0
func (p *Provider) ClientDisconnect(ctx context.Context, logger *slog.Logger, client connection.Client)
ClientDisconnect purges the refresh token from the storage.Storage.
func (*Provider) Initialize ¶ added in v1.13.3
Initialize initiate the discovery of OIDC provider.
func (*Provider) RefreshClientAuth ¶ added in v1.13.0
RefreshClientAuth initiate a non-interactive authentication against the sso provider.
Click to show internal directories.
Click to hide internal directories.