class VerifyHandler implements VerifyHandlerInterface (View source)

Traits

Contains logic which is shared between both WebAuthn's RegisterHandler and VerifyHandler, such as the attestation configuration options.

Properties

static private array $dependencies

Dependency injection configuration

Methods

setLogger(LoggerInterface|null $logger)

Sets the {see $logger} member variable

array
start(StoreInterface $store, RegisteredMethod $method)

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

verify(HTTPRequest $request, StoreInterface $store, RegisteredMethod $registeredMethod)

Verify the request has provided the right information to verify the member that aligns with any sessions state that may have been set prior

string
getComponent()

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

Details

VerifyHandler setLogger(LoggerInterface|null $logger)

Sets the {see $logger} member variable

Parameters

LoggerInterface|null $logger

Return Value

VerifyHandler

array start(StoreInterface $store, RegisteredMethod $method)

Stores any data required to handle a log in 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

RegisteredMethod $method

The RegisteredMethod instance that is being verified

Return Value

array

Props to be passed to a front-end component

Result verify(HTTPRequest $request, StoreInterface $store, RegisteredMethod $registeredMethod)

Verify the request has provided the right information to verify the member that aligns with any sessions state that may have been set prior

Parameters

HTTPRequest $request
StoreInterface $store
RegisteredMethod $registeredMethod

The RegisteredMethod instance that is being verified

Return Value

Result

string getComponent()

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

Return Value

string