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)
Click to show internal directories.
Click to hide internal directories.