Versions in this module Expand all Collapse all v0 v0.1.1 Feb 27, 2023 v0.1.0 Feb 27, 2023 Changes in this version + var ErrInvalidPassword = errors.New("invalid login or password") + func ConfigureTLS() (*tls.Config, error) + type AssertionConsumerService struct + Binding string + Index uint32 + IsDefault bool + Location string + type AttributeSource interface + AddAttributes func(*model.User, *model.AuthnRequest) error + func NewAttributeSource() (AttributeSource, error) + type Auditor interface + LogSuccess func(*model.User, *model.AuthnRequest, LoginType) + func DefaultAuditor() Auditor + type IDP struct + ArtifactResolveHandler http.HandlerFunc + AttributeSources []AttributeSource + Auditor Auditor + ECPHandler http.HandlerFunc + Error func(w http.ResponseWriter, error string, code int) + MetadataHandler http.HandlerFunc + PasswordLoginHandler http.HandlerFunc + PasswordValidator PasswordValidator + QueryHandler http.HandlerFunc + RedirectSSOHandler http.HandlerFunc + Router *httprouter.Router + TLSConfig *tls.Config + TempCache store.Cache + UIHandler http.Handler + UserCache store.Cache + func (i *IDP) DefaultArtifactResolveHandler() http.HandlerFunc + func (i *IDP) DefaultECPHandler() http.HandlerFunc + func (i *IDP) DefaultMetadataHandler() (http.HandlerFunc, error) + func (i *IDP) DefaultPasswordLoginHandler() http.HandlerFunc + func (i *IDP) DefaultQueryHandler() http.HandlerFunc + func (i *IDP) DefaultRedirectSSOHandler() http.HandlerFunc + func (i *IDP) Handler() (http.Handler, error) + type LoginType int + const CertificateLogin + const PasswordLogin + type PasswordValidator interface + Validate func(user, password string) error + func NewValidator() (PasswordValidator, error) + type ServiceProvider struct + AssertionConsumerServices []AssertionConsumerService + Certificate string + EntityID string + func ReadSPMetadata(metadata io.Reader) (*ServiceProvider, error) + type UserAttributes struct + Attributes map[string][]string + Name string + type UserPassword struct + Name string + Password string