Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
Auth contains the state for an authenticated user's session.
func NewAuthClient ¶
NewAuthClient creates a new authenticator, performing valiation on the parameters. If the logger pointer is nil, a NOOP logger is used.
func (*Auth) Begin ¶
Begin starts the authentication process, up to the point where a captcha can be presented or not. if there's no captcha, Finish() can be called with an empty captcha answer, if not, the captcha must be solved and passed to finish. the Captcha type has some helpers to convert the captcha to a png or write it to a file (as png too)
type Captcha ¶
type Captcha string
type Credentials ¶
Click to show internal directories.
Click to hide internal directories.