settings

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomPeopleAPI added in v0.7.1

type CustomPeopleAPI struct {
	FilterParam     string            `json:"filter_param"`
	Attributes      map[string]string `json:"attributes"`
	FixedAttributes map[string]string `json:"fixed_attributes"`
}

type Server

type Server struct {
	Issuer                    string                            `json:"issuer"`
	Port                      int                               `json:"port"`
	Title                     string                            `json:"title,omitempty"`
	Users                     map[string]people.AuthenticPerson `json:"users,omitempty"`
	Key                       string                            `json:"key"`
	AdditionalKeys            []string                          `json:"additional_keys,omitempty"`
	Clients                   map[string]clients.Client         `json:"clients,omitempty"`
	ClientStore               *clients.StoreSettings            `json:"client_store,omitempty"`
	ExtraScope                string                            `json:"extra_scope,omitempty"`
	Presets                   presets.Presets                   `json:"presets,omitempty"`
	CookieSecret              string                            `json:"cookie_secret"`
	UserinfoExtraClaims       map[string]string                 `json:"userinfo_extra_claims,omitempty"`
	PeopleStore               *people.StoreSettings             `json:"people_store,omitempty"`
	OtpauthStore              *otpauth.StoreSettings            `json:"otpauth_store,omitempty"`
	DisableAPI                bool                              `json:"disable_api,omitempty"`
	PeopleAPICustomVersions   map[string]CustomPeopleAPI        `json:"people_api_custom_versions,omitempty"`
	PeopleAPIRequireAuthN     bool                              `json:"people_api_require_authn,omitempty"`
	LoginTemplate             string                            `json:"login_template,omitempty"`
	LogoutTemplate            string                            `json:"logout_template,omitempty"`
	Setup2FATemplate          string                            `json:"setup_2fa_template,omitempty"`
	ResetPasswordTemplate     string                            `json:"reset_password_template,omitempty"`
	ChangePasswordTemplate    string                            `json:"change_password_template,omitempty"`
	PasswordResetMailTemplate string                            `json:"password_reset_mail_template,omitempty"`
	RevocationStore           *revocation.StoreSettings         `json:"revocation_store,omitempty"`
	EnableTokenRevocation     bool                              `json:"enable_token_revocation,omitempty"`
	KeysTTL                   int                               `json:"keys_ttl,omitempty"`
	Roles                     oauth2.RoleMappings               `json:"roles,omitempty"`
	AdministratorRole         string                            `json:"administrator_role,omitempty"`
	Mail                      mail.MailSettings                 `json:"mail,omitempty"`
	// contains filtered or unexported fields
}

func NewDefault

func NewDefault(port int) *Server

func (*Server) GenerateSigningKey

func (s *Server) GenerateSigningKey(keySize int, keyID string) error

func (Server) KeyID

func (s Server) KeyID() string

func (Server) KeySetProvider

func (s Server) KeySetProvider() keyset.Provider

func (*Server) LoadKeys

func (s *Server) LoadKeys(dir string) error

func (Server) PrivateKey

func (s Server) PrivateKey() *rsa.PrivateKey

func (Server) PublicKey

func (s Server) PublicKey() *rsa.PublicKey

func (Server) PublicKeyPEM

func (s Server) PublicKeyPEM(headers bool) string

Jump to

Keyboard shortcuts

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