SwiftagramCrypto Documentation

Protocol Custom​Client​Authentication

public protocol CustomClientAuthentication: Authentication  

A protocol defining an authentication process to be executed mimicing a custom Client.

%319 CustomClientAuthentication CustomClientAuthentication Authentication Authentication CustomClientAuthentication->Authentication Authenticator.Group.Basic Authenticator.Group.Basic Authenticator.Group.Basic->CustomClientAuthentication Authenticator.Group.Visual Authenticator.Group.Visual Authenticator.Group.Visual->CustomClientAuthentication

Conforms To

Authentication

A protocol defining a generic authentication process.

Types Conforming to Custom​Client​Authentication

Authenticator.Group.Visual

A struct defining an authenticator relying on WKWebViews to log in.

Authenticator.Group.Basic

A struct defining an authentication relying on username and password and supporting two factor authentication.

Default Implementations

authenticate()

func authenticate() -> AnyPublisher<Secret, Error>  

Authenticate the given user, with Client.default.

Returns

A valid Publisher.

Requirements

authenticate(in:​)

func authenticate(in client: Client) -> AnyPublisher<Secret, Error>

Authenticate the given user.

Parameters

client Client

A valid Client.

Returns

A valid Publisher.