Documentation
¶
Index ¶
- type Controller
- type SSOController
- func (s *SSOController) LDAPLogin(c *echo.Context) error
- func (s *SSOController) Logout(c *echo.Context) error
- func (s *SSOController) OIDCCallback(c *echo.Context) error
- func (s *SSOController) OIDCLogin(c *echo.Context) error
- func (s *SSOController) SAMLACS(c *echo.Context) error
- func (s *SSOController) SAMLLogin(c *echo.Context) error
- func (s *SSOController) SAMLMetadata(c *echo.Context) error
- func (s *SSOController) SSOService() *iauth.SSOService
- func (s *SSOController) SetAuditLogger(auditor *iauth.AuditLogger)
- func (s *SSOController) SetLDAPProvider(provider iauth.CredentialAuthenticator)
- func (s *SSOController) SetOIDCProvider(provider iauth.RedirectAuthenticator)
- func (s *SSOController) SetSAMLProvider(provider iauth.RedirectAuthenticator)
- func (s *SSOController) Whoami(c *echo.Context) error
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) QueryAudit ¶
func (ctrl *Controller) QueryAudit(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) OIDCCallback ¶
func (s *SSOController) OIDCCallback(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.