Deploy verified-group T03 review surface and packet preparation
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a09cbb-87c6-7900-a145-4ce53ba9f1a6
This commit is contained in:
parent
c5367a5a54
commit
6fb35d953b
14 changed files with 2876 additions and 9 deletions
|
|
@ -19,7 +19,7 @@ STAMP = lambda t: datetime.fromtimestamp(t, timezone.utc).isoformat()
|
|||
def human():
|
||||
return HumanSession("human-fixture", Claim("tenant:platform", Route.REGISTRATION),
|
||||
Claim("human", Route.AUTHENTICATION), {"at": int(time.time()) - 20, "level": "aal2", "mfa": True,
|
||||
"methods": ["pwd", "otp"], "source": "key-cape"}, time.time()+600, "synthetic-browser-token", roles=("Reviewer",))
|
||||
"methods": ["pwd", "otp"], "source": "key-cape"}, time.time()+600, "synthetic-browser-token", roles=("Reviewer",), groups=("net-kingdom-admins",))
|
||||
|
||||
|
||||
def envelope(request):
|
||||
|
|
@ -56,6 +56,7 @@ def test_request_preserves_identity_routes_and_excludes_presentation_claims():
|
|||
req=request(); attributes=req["subject"]["attributes"]
|
||||
assert attributes["tenant_source"]=="registration-supplied" and attributes["principal_type_source"]=="authentication-derived"
|
||||
assert attributes["roles"]==["Reviewer"]
|
||||
assert attributes["groups"]==["net-kingdom-admins"]
|
||||
assert set(req["context"])=={"memo_version","approval_id","approval_binding_digest"}
|
||||
assert "synthetic-browser-token" not in json.dumps(req)
|
||||
assert not any(k in json.dumps(req) for k in ["view_hash","presentation_id","acked_highlight_ids"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue