interface RegisterHandlerInterface (View source)

Represents the base requirements for implementing an MFA Method's RegisterHandler, which has the responsibility of initiating and managing registration of the MFA Method in question against the current Member.

Methods

public
array
start(StoreInterface $store)

Stores any data required to handle a registration process with a method, and returns relevant state to be applied to the front-end application managing the process.

public
register(HTTPRequest $request, StoreInterface $store)

Confirm that the provided details are valid for a registration returning a Result describing the outcome of this validation. Detail to be persisted against the member should be set as context on the result.

public
string
getDescription()

Provide a localised description of this MFA Method.

public
string
getSupportLink()

Provide a localised URL to a support article about the registration process for this MFA Method.

public
string
getSupportText()

Provide a localised string to describe the support link {getSupportLink} about this MFA Method.

public
string
getComponent()

Get the key that a React UI component is registered under (with @silverstripe/react-injector on the front-end)

Details

array start(StoreInterface $store)

Stores any data required to handle a registration process with a method, and returns relevant state to be applied to the front-end application managing the process.

Parameters

StoreInterface $store

An object that hold session data (and the Member) that can be mutated

Return Value

array

Props to be passed to a front-end component

Result register(HTTPRequest $request, StoreInterface $store)

Confirm that the provided details are valid for a registration returning a Result describing the outcome of this validation. Detail to be persisted against the member should be set as context on the result.

Parameters

HTTPRequest $request
StoreInterface $store

Return Value

Result

A result of this registration with context set as data to be stored against the RegisteredMethod

string getDescription()

Provide a localised description of this MFA Method.

eg. "Verification codes are created by an app on your phone"

Return Value

string

Provide a localised URL to a support article about the registration process for this MFA Method.

Return Value

string

string getSupportText()

Provide a localised string to describe the support link {getSupportLink} about this MFA Method.

Return Value

string

string getComponent()

Get the key that a React UI component is registered under (with @silverstripe/react-injector on the front-end)

Return Value

string