Structure
Authenticator.Group.Basic.TwoFactor
struct TwoFactor: Authentication
A struct defining an instance capable of
resolving a two factor authentication challenge.
Relationships
Conforms To
AuthenticationA
protocoldefining a generic authentication process.
Properties
crossSiteRequestForgery
public let crossSiteRequestForgery: HTTPCookie
The cross stie request forgery token.
Methods
authenticate()
public func authenticate() -> AnyPublisher<Secret, Swift.Error>
Authenticate the given user.
Parameters
| Name | Type | Description |
|---|---|---|
| username | A valid |
|
| encryptedPassword | A valid |
|
| cookies | An array of |
|
| client | A valid |
Returns
Some Publisher.