idp

package
v0.3.10-0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 14 Imported by: 11

Documentation

Index

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 OnLogout

type OnLogout func(ctx context.Context, idpId string) string

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

Jump to

Keyboard shortcuts

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