mgmt

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp(db userdb.Backend, config *Config, features *idp.Features, authClient AuthClient, template *web.Template) (http.Handler, error)

Types

type AuthClient

type AuthClient interface {
	Authenticate(context.Context, *authpb.Request, ...grpc.CallOption) (*authpb.Response, error)
}

AuthClient is a wrapper interface for an id/auth.Client that adds support for a Logout event. This allows injection of state-aware components that can trigger on both successful authentication and logout to maintain external session-scoped state.

type Config

type Config struct {
	KnownASPServices []string          `yaml:"known_asp_services"`
	Messages         map[string]string `yaml:"messages"`

	WebAuthn struct {
		DisplayName string `yaml:"display_name"`
		RPID        string `yaml:"rpid"`
		Origin      string `yaml:"origin"`
	} `yaml:"webauthn"`

	ConfirmAuthService string `yaml:"confirm_auth_service" doc:"authentication service for password confirmations"`

	CookieAuthKey cryptutil.SessionAuthenticationKey `yaml:"cookie_auth_key" doc:"authentication key for cookies"`
	CookieEncKey  cryptutil.SessionEncryptionKey     `yaml:"cookie_enc_key" doc:"encryption key for cookies"`
	CSRFKey       cryptutil.SessionEncryptionKey     `yaml:"csrf_key" doc:"encryption key for CSRF cookies (disable CSRF if not set)"`
}

type Response

type Response interface {
	http.Handler
}

Jump to

Keyboard shortcuts

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