You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the session tracks the selected verifier in #321, we can make use of that infrastructure to put guards on certain view functions that require a verifier to be selected. The first step is to create a new middleware class that enforces the requirement.
Background
Once the session tracks the selected verifier in #321, we can make use of that infrastructure to put guards on certain view functions that require a verifier to be selected. The first step is to create a new middleware class that enforces the requirement.
This is similar to how the
AgencySessionRequired
andEligibileSessionRequired
middleware are used.Tasks
VerifierSessionRequired
inheriting fromMiddlewareMixin
, see the other*SessionRequired
as examplesprocess_request()
, checksession.verifier()
for the request.None
, raise an error to stop the requestNone
to allow the request to continueeligibility:index
eligibility:confirm
The text was updated successfully, but these errors were encountered: