Implement scoped P06 authentication policy and guarded optional onboarding
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a09cbb-87c6-7900-a145-4ce53ba9f1a6
This commit is contained in:
parent
0801ec55ac
commit
3bd1827a7f
10 changed files with 298 additions and 8 deletions
|
|
@ -32,6 +32,11 @@ class Delivery:
|
|||
def mail_delivery_status(self, event_id):
|
||||
return {"state":"failed" if self.attempts == 1 else "provider_accepted" if self.attempts else "not_found"}
|
||||
fixture.app.outbox_delivery = Delivery()
|
||||
from test_authentication_policy import PolicyFixture
|
||||
from dataclasses import replace
|
||||
fixture.app.authentication_policy = PolicyFixture()
|
||||
session = fixture.oidc.sessions['operator']
|
||||
fixture.oidc.sessions['operator-aal1'] = replace(session, claims=dict(session.claims, assurance=dict(level='aal1', mfa=False)), csrf_token='operator-aal1-csrf')
|
||||
class Quiet(WSGIRequestHandler):
|
||||
def log_message(self,*args):pass
|
||||
server=make_server('127.0.0.1',0,fixture.app,handler_class=Quiet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue