auth

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package auth handles OAuth2/OIDC login flows and session management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(providers []auth.Provider, allowedDomains []string, sm *scs.SessionManager, sessionHMACKey string, cookieSecure bool) modregistry.Module

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(q db.Querier, providers []auth.Provider, allowedDomains []string, sm *scs.SessionManager, sessionHMACKey string, cookieSecure bool) *Handler

func (*Handler) Callback

func (h *Handler) Callback(w http.ResponseWriter, r *http.Request)

func (*Handler) LoginPage

func (h *Handler) LoginPage(w http.ResponseWriter, r *http.Request)

func (*Handler) Logout

func (h *Handler) Logout(w http.ResponseWriter, r *http.Request)

func (*Handler) Redirect

func (h *Handler) Redirect(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
templ: version: v0.3.1020
templ: version: v0.3.1020

Jump to

Keyboard shortcuts

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