handlers

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteError added in v1.50.0

func WriteError(reqCtx *models.RequestContext, logger models.Logger, err error)

WriteError maps OAuth2 domain errors to safe HTTP responses. Internal details are logged but never returned to the client.

Types

type AuthorizeHandler

type AuthorizeHandler struct {
	UseCase usecases.AuthorizeUseCase
	Cookie  CookieOptions
	Logger  models.Logger
}

func (*AuthorizeHandler) Handle added in v1.7.0

func (h *AuthorizeHandler) Handle() http.HandlerFunc

type CallbackHandler

type CallbackHandler struct {
	UseCase usecases.CallbackUseCase
	Cookie  CookieOptions
	Logger  models.Logger
}

func (*CallbackHandler) Handle added in v1.7.0

func (h *CallbackHandler) Handle() http.HandlerFunc

type CookieOptions added in v1.50.0

type CookieOptions struct {
	Secure   bool
	Domain   string
	SameSite http.SameSite
	MaxAge   time.Duration
}

CookieOptions describes the attributes applied to OAuth2 flow cookies.

Jump to

Keyboard shortcuts

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