Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PasswordAuthenticator ¶
type PasswordAuthenticator struct {
// contains filtered or unexported fields
}
func NewPublic ¶
func NewPublic(oktaDomain string, logger log.Logger) ( *PasswordAuthenticator, error)
New creates a new PasswordAuthenticator using Okta as the backend. The Okta Public Application API is used, so rate limits apply. The Okta domain to check must be given by oktaDomain. Log messages are written to logger. A new *PasswordAuthenticator is returned.
func (*PasswordAuthenticator) PasswordAuthenticate ¶
func (pa *PasswordAuthenticator) PasswordAuthenticate(username string, password []byte) (bool, error)
PasswordAuthenticate will authenticate a user using the provided username and password. It returns true if the user is authenticated, else false (due to either invalid username or incorrect password), and an error.
func (*PasswordAuthenticator) UpdateStorage ¶
func (pa *PasswordAuthenticator) UpdateStorage(storage simplestorage.SimpleStore) error
Click to show internal directories.
Click to hide internal directories.