saml

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSessionProvider added in v0.0.3

func NewSessionProvider(config *Config, opts samlsp.Options, con redis.Redis) samlsp.SessionProvider

func ServiceProvider

func ServiceProvider(config *Config, con redis.Redis) *samlsp.Middleware

Types

type BaseResource added in v0.0.3

type BaseResource struct {
	URL     string
	Methods []string
	Roles   []string
}

func NewBaseResource added in v0.0.3

func NewBaseResource(url string, methods, roles []string) *BaseResource

type BaseResources added in v0.0.3

type BaseResources []BaseResource

func (BaseResources) ToResources added in v0.0.3

func (r BaseResources) ToResources() Matching

type Config added in v0.0.3

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig added in v0.0.3

func NewConfig() *Config

func (*Config) GetInjectRequestHeaders added in v0.0.3

func (c *Config) GetInjectRequestHeaders() []options.Header

func (*Config) GetMapping added in v0.0.3

func (c *Config) GetMapping() options.Mapping

func (*Config) GetProxyURL added in v0.0.3

func (c *Config) GetProxyURL() *url.URL

func (*Config) GetResources added in v0.0.3

func (c *Config) GetResources() Matching

func (*Config) InSecureSkipVerify added in v0.0.3

func (c *Config) InSecureSkipVerify() bool

type Injection added in v0.0.3

type Injection struct{}

type Matching added in v0.0.3

type Matching interface {
	LookUp(method, url string, role string) bool
	MultipleLookUp(method, url string, roles []string) bool
}

type Middleware added in v0.0.3

type Middleware struct {
	*samlsp.Middleware
	// contains filtered or unexported fields
}

func New

func New(config *Config, con redis.Redis) *Middleware

func (*Middleware) ServeHTTP added in v0.0.3

func (m *Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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