onboarding

package
v1.6.10 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleOnboardDirect added in v1.4.2

func HandleOnboardDirect(w http.ResponseWriter, r *http.Request)

HandleOnboardDirect handles GET/POST /onboard — a direct onboarding URL that requires no OIDC state. After setup completes the user is redirected to /admin/ where the IdP session created here allows silent SSO login without re-entering credentials. @Summary Initial admin setup @Description Renders the onboarding page (GET) or creates the initial administrator (POST). @Tags onboarding @Accept x-www-form-urlencoded @Produce html @Param username formData string false "Admin username" @Param password formData string false "Admin password" @Param confirm_password formData string false "Confirm password" @Param email formData string false "Admin email" @Success 200 {string} string "Onboarding form (GET)" @Success 302 {string} string "Redirect to /admin/ after success (POST)" @Router /onboard [get] @Router /onboard [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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