settings

package
v0.0.0-...-ce8a4a6 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackgroundUI

type BackgroundUI struct {
	BackgroundImageSrcUrl string
	Styles                string
}

type EmailOTP

type EmailOTP struct {
	// Can users use email for MFA
	Enabled bool

	// Is MFA with email enforced?
	Enforced bool
}

type MultiFactor

type MultiFactor struct {
	EmailOTP EmailOTP
	TOTP     TOTP
}

type Provider

type Provider struct {
	Handle      string
	Label       string
	IssuerUrl   string
	Key         string
	RedirectUrl string
	Secret      string
	Scope       string
	Usage       []string
}

func (Provider) HasUsage

func (p Provider) HasUsage(u string) bool

type SAML

type SAML struct {
	Enabled bool

	// IdP name used on a login form
	Name string

	// SAML certificate
	Cert string

	// SAML certificate private key
	Key string

	// Sign AuthNRequest and assertion
	SignRequests bool

	// Signature method for signing
	SignMethod string

	// Post or redirect binding
	Binding string

	// Identity provider hostname
	IDP struct {
		URL string

		// identifier payload from idp
		IdentName       string
		IdentHandle     string
		IdentIdentifier string
	}
}

type Settings

type Settings struct {
	LocalEnabled              bool
	SignupEnabled             bool
	EmailConfirmationRequired bool
	PasswordResetEnabled      bool
	PasswordCreateEnabled     bool
	ExternalEnabled           bool
	SplitCredentialsCheck     bool
	Providers                 []Provider
	Saml                      SAML
	MultiFactor               MultiFactor
	BackgroundUI              BackgroundUI
	ProfileAvatarEnabled      bool
	SendUserInviteEmail       bool
}

type TOTP

type TOTP struct {
	// Can users use TOTP MFA?
	Enabled bool

	// Is TOTP MFA enforced?
	Enforced bool

	// TOTP issuer
	Issuer string
}

Jump to

Keyboard shortcuts

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