auth

package
v0.0.0-...-4f574f2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller owns the dependencies required by the auth REST handlers.

func New

func New(service *iauth.Service, auditor *iauth.AuditLogger) *Controller

New constructs an auth controller with explicit dependencies.

func (*Controller) CreateKey

func (ctrl *Controller) CreateKey(c *echo.Context) error

func (*Controller) ListKeys

func (ctrl *Controller) ListKeys(c *echo.Context) error

func (*Controller) QueryAudit

func (ctrl *Controller) QueryAudit(c *echo.Context) error

func (*Controller) RevokeKey

func (ctrl *Controller) RevokeKey(c *echo.Context) error

func (*Controller) RotateKey

func (ctrl *Controller) RotateKey(c *echo.Context) error

type SSOController

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

SSOController serves session-aware endpoints and browser-redirect provider callbacks.

func NewSSO

func NewSSO(sessions *iauth.SessionStore, sso *iauth.SSOService, cookieName string, trustedProxies ...*net.IPNet) *SSOController

NewSSO constructs a controller for cookie-session endpoints.

func (*SSOController) LDAPLogin

func (s *SSOController) LDAPLogin(c *echo.Context) error

func (*SSOController) Logout

func (s *SSOController) Logout(c *echo.Context) error

func (*SSOController) OIDCCallback

func (s *SSOController) OIDCCallback(c *echo.Context) error

func (*SSOController) OIDCLogin

func (s *SSOController) OIDCLogin(c *echo.Context) error

func (*SSOController) SAMLACS

func (s *SSOController) SAMLACS(c *echo.Context) error

func (*SSOController) SAMLLogin

func (s *SSOController) SAMLLogin(c *echo.Context) error

func (*SSOController) SAMLMetadata

func (s *SSOController) SAMLMetadata(c *echo.Context) error

func (*SSOController) SSOService

func (s *SSOController) SSOService() *iauth.SSOService

SSOService returns the shared login completion service for provider handlers.

func (*SSOController) SetAuditLogger

func (s *SSOController) SetAuditLogger(auditor *iauth.AuditLogger)

SetAuditLogger wires audit logging for provider-level login/logout events.

func (*SSOController) SetLDAPProvider

func (s *SSOController) SetLDAPProvider(provider iauth.CredentialAuthenticator)

SetLDAPProvider wires the LDAP credential provider into the controller.

func (*SSOController) SetOIDCProvider

func (s *SSOController) SetOIDCProvider(provider iauth.RedirectAuthenticator)

SetOIDCProvider wires the OIDC redirect provider into the controller.

func (*SSOController) SetSAMLProvider

func (s *SSOController) SetSAMLProvider(provider iauth.RedirectAuthenticator)

SetSAMLProvider wires the SAML redirect provider into the controller.

func (*SSOController) Whoami

func (s *SSOController) Whoami(c *echo.Context) error

Jump to

Keyboard shortcuts

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