Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMethodType ¶ added in v1.4.7
type AuthMethodType int
AuthMethodType identifies authentication provider type.
const ( // Unknown is unknown provider type.. Unknown AuthMethodType = iota // Local provides authentication with local database. Local // Ldap provides authentication with LDAP database. Ldap // Saml provides authentication with SAML. Saml // OAuth2 provides authentication with OAuth2.0/OpenID. OAuth2 )
func (AuthMethodType) String ¶ added in v1.4.7
func (m AuthMethodType) String() string
String returns the description for AuthMethodType enum.
type Backend ¶
type Backend struct { Method AuthMethodType // contains filtered or unexported fields }
Backend is an authentication backend.
func NewBackend ¶ added in v1.4.7
NewBackend returns Backend instance.
func (*Backend) GetMethod ¶
GetMethod returns the authentication method associated with an authentication provider.
type BackendDriver ¶
type BackendDriver interface { GetRealm() string GetName() string GetMethod() string GetConfig() string Configure() error Validate() error Request(operator.Type, *requests.Request) error }
BackendDriver is an interface to an authentication provider.
type Config ¶ added in v1.4.7
type Config struct { Local *local.Config `json:"local,omitempty" xml:"local" yaml:"local,omitempty"` Ldap *ldap.Config `json:"ldap,omitempty" xml:"ldap" yaml:"ldap,omitempty"` Saml *saml.Config `json:"saml,omitempty" xml:"saml" yaml:"saml,omitempty"` OAuth2 *oauth2.Config `json:"oauth2,omitempty" xml:"oauth2" yaml:"oauth2,omitempty"` // contains filtered or unexported fields }
Config holds configuration for one of the supported authentication backends.
Click to show internal directories.
Click to hide internal directories.