saml

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_VALUE_SESSION_HEADER_NAME = "SESSION"

Variables

This section is empty.

Functions

This section is empty.

Types

type CaddyService

type CaddyService struct {
	Handler caddyhttp.Handler
}

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

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.

Jump to

Keyboard shortcuts

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