STRUCT

AuthenticatorSelectorStep

Contents

public struct AuthenticatorSelectorStep: HaapiRepresentation, Equatable

A specific authentication step in which users must choose one of the available authenticators to make progress towards authenticating themselves.

Properties

title

public let title: Message

The title of the step.

authenticators

public let authenticators: [AuthenticatorOption]

The possible authenticator options.

metadata

public let metadata: Metadata?

actions

public let actions: [Action]

Possible actions a user or the client may choose to take to continue the flow.

messages

public let messages: [UserMessage]

links

public let links: [Link]

properties

public let properties: Properties?

type

public let type: RepresentationType = .authenticationStep

Methods

init(from:)

public init(from decoder: Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

encode(to:)

public func encode(to encoder: Encoder) throws

Parameters

Name Description
encoder The encoder to write data to.

==(::)

public static func == (lhs: AuthenticatorSelectorStep, rhs: AuthenticatorSelectorStep) -> Bool

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.