saml

package
v0.0.0-...-20d3818 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BindingRedirect = "redirect"
	BindingPOST     = "post"
)
View Source
const MetadataReqTimeout = time.Second * 15

Variables

This section is empty.

Functions

func NewCanopsisX509KeyStore

func NewCanopsisX509KeyStore(key *rsa.PrivateKey, cert []byte) dsig.X509KeyStore

Types

type ServiceProvider

type ServiceProvider interface {
	SamlMetadataHandler() gin.HandlerFunc
	SamlAuthHandler() gin.HandlerFunc
	SamlAcsHandler() gin.HandlerFunc
	SamlSloHandler() gin.HandlerFunc
}

func NewServiceProvider

func NewServiceProvider(
	ctx context.Context,
	userProvider security.UserProvider,
	roleCollection mongo.DbCollection,
	sessionStore libsession.Store,
	enforcer security.Enforcer,
	config security.Config,
	tokenService apisecurity.TokenService,
	maintenanceAdapter config.MaintenanceAdapter,
	logger zerolog.Logger,
) (ServiceProvider, error)

Jump to

Keyboard shortcuts

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