SessionStore
class SessionStore implements StoreInterface (View source)
This class provides an interface to store data in session during an MFA process. This is implemented as a measure to prevent bleeding state between individual MFA auth types
Constants
SESSION_KEY |
|
Methods
Attempt to create a store from the given request getting any existing state from the session of the request
No description
No description
No description
Get the state from the store
Update the state in the store. Will override existing state. To add to the existing state use addState().
Add to the state in the store
Add and keep track of methods that have been verified
Get the list of methods that have been verified
No description
No description
Details
__construct(Member $member)
Attempt to create a store from the given request getting any existing state from the session of the request
{@inheritdoc}
Member|null
getMember()
StoreInterface
setMember(Member $member)
string|null
getMethod()
StoreInterface
setMethod(string|null $method)
array
getState()
Get the state from the store
StoreInterface
setState(array $state)
Update the state in the store. Will override existing state. To add to the existing state use addState().
StoreInterface
addState(array $state)
Add to the state in the store
StoreInterface
addVerifiedMethod(string $method)
Add and keep track of methods that have been verified
array
getVerifiedMethods()
Get the list of methods that have been verified
StoreInterface
save(HTTPRequest $request)
Save this store into the session of the given request
{@inheritdoc}
static StoreInterface|null
load(HTTPRequest $request)
Load a StoreInterface from the given request and return it if it exists
static void
clear(HTTPRequest $request)
Clear any stored values for the given request
{@inheritdoc}