server

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorUnsupportedMediaType = "unsupported_media_type"

Variables

This section is empty.

Functions

func ChangePasswordHandler

func ChangePasswordHandler(peopleStore people.Store) http.Handler

func Favicon16x16Handler

func Favicon16x16Handler() http.Handler

func Favicon32x32Handler

func Favicon32x32Handler() http.Handler

func FaviconHandler

func FaviconHandler() http.Handler

func HealthHandler

func HealthHandler(peopleStore people.Store) http.Handler

func IndexHandler

func IndexHandler(basePath string, serverSettings *settings.Server, sessionManager sessions.SessionManager, clientStore clients.Store, scope, version string) http.Handler

func InfoHandler

func InfoHandler(version, runtimeVersion string) http.Handler

func LoadLoginTemplate

func LoadLoginTemplate(filename string) error

func LoadLogoutTemplate

func LoadLogoutTemplate(filename string) error

func LoadSetup2FATemplate added in v0.8.0

func LoadSetup2FATemplate(filename string) error

func LoginHandler

func LoginHandler(basePath string, sessionManager sessions.SessionManager, peopleStore people.Store, clientStore clients.Store, otpauthStore otpauth.Store, presets presets.Presets, issuer string) http.Handler

func LogoutHandler

func LogoutHandler(basePath string, serverSettings *settings.Server, sessionManager sessions.SessionManager, clientStore clients.Store) http.Handler

func LookupOTPAuthHandler added in v0.8.0

func LookupOTPAuthHandler(otpauthStore otpauth.Store) http.Handler

func LookupPersonHandler

func LookupPersonHandler(peopleStore people.Store, customVersions map[string]settings.CustomPeopleAPI, roleMappings oauth2.RoleMappings) http.Handler

func MainScriptHandler

func MainScriptHandler() http.Handler

func PutOTPAuthHandler added in v0.8.0

func PutOTPAuthHandler(otpauthStore otpauth.Store, issuer string) http.Handler

func PutPersonHandler

func PutPersonHandler(peopleStore people.Store) http.Handler

func ResetOTPAuthHandler added in v0.8.0

func ResetOTPAuthHandler(otpauthStore otpauth.Store) http.Handler

func Setup2FAHandler added in v0.8.0

func Setup2FAHandler(sessionManager sessions.SessionManager, clientStore clients.Store, presets presets.Presets, otpauthStore otpauth.Store, basePath, version, issuer string) http.Handler

func StyleHandler

func StyleHandler() http.Handler

func ValidateOTPCodeHandler added in v0.8.0

func ValidateOTPCodeHandler(otpauthStore otpauth.Store) http.Handler

Types

type OTPAuthDetails added in v0.8.0

type OTPAuthDetails struct {
	Algorithm    string `json:"algorithm"`
	Digits       int    `json:"digits"`
	OTPAuthURI   string `json:"otpauth_uri"`
	Period       int    `json:"period"`
	RecoveryCode string `json:"recovery_code"`
	Secret       string `json:"secret"`
	Type         string `json:"type"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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