Documentation ¶
Index ¶
Constants ¶
View Source
const ( IdentifierOneLoginProtectMfa = "OneLogin Protect" IdentifierSmsMfa = "OneLogin SMS" IdentifierTotpMfa = "Google Authenticator" IdentifierYubiKey = "Yubico YubiKey" MessageMFARequired = "MFA is required for this user" MessageSuccess = "Success" MessagePending = "Authentication pending" )
MFA identifier constants.
View Source
const ProviderName = "OneLogin"
ProviderName constant holds the name of the OneLogin IDP.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
type AuthRequest struct { AppID string `json:"app_id"` Password string `json:"password"` Subdomain string `json:"subdomain"` Username string `json:"username_or_email"` IPAddress string `json:"ip_address,omitempty"` }
AuthRequest represents an mfa OneLogin request.
type Client ¶
type Client struct { provider.ValidateBase // AppID represents the OneLogin connector id. AppID string // Client is the HTTP client for accessing the IDP provider's APIs. Client *provider.HTTPClient // A predefined MFA name. MFA string // Subdomain is the organisation subdomain in OneLogin. Subdomain string }
Client is a wrapper representing a OneLogin SAML client.
func (*Client) Authenticate ¶
func (c *Client) Authenticate(loginDetails *creds.LoginDetails) (string, error)
Authenticate logs into OneLogin and returns a SAML response.
Click to show internal directories.
Click to hide internal directories.