Documentation ¶
Index ¶
- Constants
- type OnIdpInitiatedLogin
- type OnLogout
- type OnSpInitiatedLogin
- type SSAMLIdpInstance
- func (idp *SSAMLIdpInstance) AddHandlers(app *appsrv.Application, prefix string, middleware appsrv.TMiddleware)
- func (idp *SSAMLIdpInstance) AddSPMetadata(metadata []byte) error
- func (idp *SSAMLIdpInstance) AddSPMetadataFile(filename string) error
- func (idp *SSAMLIdpInstance) GetMetadata(idpId string) samlutils.EntityDescriptor
- func (idp *SSAMLIdpInstance) SetHtmlTemplate(entry i18n.TableEntry) error
- type SSAMLServiceProvider
Constants ¶
View Source
const (
IDP_ID_KEY = "<idp_id>"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnIdpInitiatedLogin ¶
type OnIdpInitiatedLogin func(ctx context.Context, sp *SSAMLServiceProvider, IdpId, redirectUrl string) (samlutils.SSAMLIdpInitiatedLoginData, error)
type OnSpInitiatedLogin ¶
type OnSpInitiatedLogin func(ctx context.Context, idpId string, sp *SSAMLServiceProvider) (samlutils.SSAMLSpInitiatedLoginData, error)
type SSAMLIdpInstance ¶
type SSAMLIdpInstance struct {
// contains filtered or unexported fields
}
func NewIdpInstance ¶
func NewIdpInstance(saml *samlutils.SSAMLInstance, spLoginFunc OnSpInitiatedLogin, idpLoginFunc OnIdpInitiatedLogin, logoutFunc OnLogout) *SSAMLIdpInstance
func (*SSAMLIdpInstance) AddHandlers ¶
func (idp *SSAMLIdpInstance) AddHandlers(app *appsrv.Application, prefix string, middleware appsrv.TMiddleware)
func (*SSAMLIdpInstance) AddSPMetadata ¶
func (idp *SSAMLIdpInstance) AddSPMetadata(metadata []byte) error
func (*SSAMLIdpInstance) AddSPMetadataFile ¶
func (idp *SSAMLIdpInstance) AddSPMetadataFile(filename string) error
func (*SSAMLIdpInstance) GetMetadata ¶
func (idp *SSAMLIdpInstance) GetMetadata(idpId string) samlutils.EntityDescriptor
func (*SSAMLIdpInstance) SetHtmlTemplate ¶
func (idp *SSAMLIdpInstance) SetHtmlTemplate(entry i18n.TableEntry) error
type SSAMLServiceProvider ¶
type SSAMLServiceProvider struct { Username string // contains filtered or unexported fields }
func (*SSAMLServiceProvider) GetEntityId ¶
func (sp *SSAMLServiceProvider) GetEntityId() string
func (*SSAMLServiceProvider) GetPostAssertionConsumerServiceUrl ¶
func (sp *SSAMLServiceProvider) GetPostAssertionConsumerServiceUrl() string
func (*SSAMLServiceProvider) IsValid ¶
func (sp *SSAMLServiceProvider) IsValid() error
Click to show internal directories.
Click to hide internal directories.