mgmt

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: GPL-3.0 Imports: 27 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"`

	OTPIssuer string `yaml:"otp_issuer" doc:"OTP issuer organization name"`

	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"`
}

type Response

type Response interface {
	http.Handler
}

Source Files

  • app.go
  • asp.go
  • change_password.go
  • messages.go
  • otp.go
  • recovery.go
  • util.go
  • webauthn.go

Jump to

Keyboard shortcuts

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