Documentation ¶
Index ¶
- Constants
- type CaddyService
- type SamlProviderModule
- func (SamlProviderModule) CaddyModule() caddy.ModuleInfo
- func (m *SamlProviderModule) Provision(ctx caddy.Context) error
- func (m SamlProviderModule) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (m *SamlProviderModule) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (m *SamlProviderModule) Validate() error
Constants ¶
View Source
const DEFAULT_VALUE_SESSION_HEADER_NAME = "SESSION"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaddyService ¶
func (CaddyService) Handle ¶
func (c CaddyService) Handle(w http.ResponseWriter, r *http.Request) (int, error)
type SamlProviderModule ¶
type SamlProviderModule struct { MongoHost string `json:"mongo_host,omitempty"` MongoPort string `json:"mongo_port,omitempty"` MongoDb string `json:"mongo_db,omitempty"` SessionHeaderName string `json:"session_header_name,omitempty"` SessionExpiryHours string `json:"session_expiry_hours,omitempty"` AudienceRestriction string `json:"audience_restriction,omitempty"` EntityId string `json:"entityId,omitempty"` SignAuthnRequest string `json:"sign_authn_req,omitempty"` SignCertFile string `json:"sign_cert_file,omitempty"` SignKeyFile string `json:"sign_key_file,omitempty"` IdpMetaDataUrl string `json:"idp_metadata_url,omitempty"` ExternalUrl string `json:"external_url,omitempty"` MetadataPath string `json:"metadata_path,omitempty"` LogoutPath string `json:"logout_path,omitempty"` SLOPath string `json:"slo_path,omitempty"` SSOPath string `json:"sso_path,omitempty"` CookieDomain string `json:"cookie_domain,omitempty"` CookiePath string `json:"cookie_path,omitempty"` RoleAttributeName string `json:"role_attribute_name,omitempty"` AllowedRoles []string `json:"allowed_roles,omitempty"` SamlProvider *gosamlserviceprovider.SamlServiceProvider Logger *zap.SugaredLogger }
func (SamlProviderModule) CaddyModule ¶
func (SamlProviderModule) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*SamlProviderModule) Provision ¶
func (m *SamlProviderModule) Provision(ctx caddy.Context) error
Provision implements caddy.Provisioner.
func (SamlProviderModule) ServeHTTP ¶
func (m SamlProviderModule) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
ServeHTTP implements caddyhttp.MiddlewareHandler.
func (*SamlProviderModule) UnmarshalCaddyfile ¶
func (m *SamlProviderModule) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
func (*SamlProviderModule) Validate ¶
func (m *SamlProviderModule) Validate() error
Validate implements caddy.Validator.
Click to show internal directories.
Click to hide internal directories.