Documentation
¶
Index ¶
- Constants
- func DeleteSecureCookie(w http.ResponseWriter, r *http.Request, name string)
- func SetSecureCookie(w http.ResponseWriter, r *http.Request, name, value string, maxAge int)
- func SetupHTTPHandlers(idp *saml.IDP, providers *saml.ServiceProviders, cfg config.Config) http.Handler
- func StartServer(cfg config.Config, handler http.Handler) error
- type SelectionItem
- type SelectionPageConfig
- type SelectionPageData
Constants ¶
View Source
const ( ErrInvalidRequest = "Invalid request" ErrInternalServer = "Internal server error" ErrInvalidLogout = "Invalid logout request" ErrBadRequest = "Bad request" ErrMethodNotAllowed = "Method not allowed" ErrInvalidIDPID = "Invalid IDP ID" ErrMissingSAMLRequest = "Missing SAMLRequest parameter" ErrInvalidFormData = "Invalid form data" ErrFailedToCreateLogoutRequest = "Failed to create logout request" ErrIDPDoesNotSupportSLO = "Selected IdP does not support Single Logout" )
Standard error responses.
Variables ¶
This section is empty.
Functions ¶
func DeleteSecureCookie ¶
func DeleteSecureCookie(w http.ResponseWriter, r *http.Request, name string)
DeleteSecureCookie removes a cookie by setting its MaxAge to -1.
func SetSecureCookie ¶
SetSecureCookie sets a secure HTTP-only cookie with consistent security settings.
func SetupHTTPHandlers ¶
func SetupHTTPHandlers(idp *saml.IDP, providers *saml.ServiceProviders, cfg config.Config) http.Handler
SetupHTTPHandlers sets up the HTTP handlers for the SAML proxy. This proxy acts as a SAML Identity Provider (IdP) proxy: - To Service Providers (SPs), it appears as an IdP - To Identity Providers (IdPs), it appears as an SP It allows users to select which IdP they want to use for authentication.
Types ¶
type SelectionItem ¶
SelectionItem represents an item in a selection list.
type SelectionPageConfig ¶
type SelectionPageConfig struct {
Title string
Subtitle string
ActionURL string
ButtonClass string
ItemClass string
Note string
}
SelectionPageConfig holds configuration for selection page templates.
type SelectionPageData ¶
type SelectionPageData struct {
Config SelectionPageConfig
Items []SelectionItem
}
SelectionPageData holds data for selection page templates.
Source Files
¶
- cookie_utils.go
- error_handlers.go
- proxy.go
- proxy_handler_common.go
- proxy_handler_idp_select.go
- proxy_handler_idp_selected.go
- proxy_handler_logout_idp_select.go
- proxy_handler_logout_idp_selected.go
- proxy_handler_logout_sp_select.go
- proxy_handler_logout_sp_selected.go
- proxy_handler_ping.go
- proxy_handler_saml_acs.go
- proxy_handler_slo.go
- proxy_handler_slo_response.go
- proxy_handler_sls.go
- saml_utils.go
- template_shared.go
Click to show internal directories.
Click to hide internal directories.