Back to godoc.org

Package saml

v0.0.0-...-5f1690d
Latest Go to latest

The highest tagged major version is .

Published: Apr 28, 2020 | License: Apache-2.0 | Module: github.com/KvalitetsIT/gosamlserviceprovider

Index

Constants

const DEFAULT_VALUE_SESSION_HEADER_NAME = "SESSION"

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"`

	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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier