Documentation ¶
Index ¶
- type Backend
- func (b *Backend) Authenticate(opts map[string]interface{}) (map[string]interface{}, error)
- func (b *Backend) ConfigureAuthenticator() error
- func (b *Backend) ConfigureLogger(logger *zap.Logger) error
- func (b *Backend) ConfigureTokenProvider(upstream *jwtconfig.CommonTokenConfig) error
- func (b *Backend) Do(opts map[string]interface{}) error
- func (b *Backend) GetMethod() string
- func (b *Backend) GetName() string
- func (b *Backend) GetRealm() string
- func (b *Backend) Validate() error
- func (b *Backend) ValidateConfig() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { Name string `json:"name,omitempty"` Method string `json:"method,omitempty"` Realm string `json:"realm,omitempty"` Provider string `json:"provider,omitempty"` ServiceProviders map[string]*samllib.ServiceProvider `json:"-"` IdpMetadataLocation string `json:"idp_metadata_location,omitempty"` IdpMetadataURL *url.URL `json:"-"` IdpSignCertLocation string `json:"idp_sign_cert_location,omitempty"` TenantID string `json:"tenant_id,omitempty"` ApplicationID string `json:"application_id,omitempty"` ApplicationName string `json:"application_name,omitempty"` // LoginURL is the link to Azure AD authentication portal. // The link is auto-generated based on Azure AD tenant and // application IDs. LoginURL string `json:"-"` // EntityID is the "Identifier (Entity ID)" an administrator // specifies in "Set up Single Sign-On with SAML" in Azure AD // Enterprise Applications. EntityID string `json:"entity_id,omitempty"` // AcsURL is the list of URLs server instance is listening on. These URLS // are known as SP Assertion Consumer Service endpoints. For example, // users may access a website via http://app.domain.local. At the // same time the users may access it by IP, e.g. http://10.10.10.10. or // by name, i.e. app. Each of the URLs is a separate endpoint. AssertionConsumerServiceURLs []string `json:"acs_urls,omitempty"` TokenProvider *jwtconfig.CommonTokenConfig `json:"-"` // contains filtered or unexported fields }
Backend represents authentication provider with SAML backend.
func NewDatabaseBackend ¶
func NewDatabaseBackend() *Backend
NewDatabaseBackend return an instance of authentication provider with SAML backend.
func (*Backend) Authenticate ¶
Authenticate performs authentication.
func (*Backend) ConfigureAuthenticator ¶
ConfigureAuthenticator configures backend authenticator.
func (*Backend) ConfigureLogger ¶
ConfigureLogger configures backend with the same logger as its user.
func (*Backend) ConfigureTokenProvider ¶
func (b *Backend) ConfigureTokenProvider(upstream *jwtconfig.CommonTokenConfig) error
ConfigureTokenProvider configures TokenProvider.
func (*Backend) GetMethod ¶
GetMethod returns the authentication method associated with this backend.
func (*Backend) ValidateConfig ¶
ValidateConfig checks whether Backend has mandatory configuration.
Click to show internal directories.
Click to hide internal directories.