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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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