spike(idp): task 0.5 claim contract verified against live Zitadel #50

Merged
amiryahaya merged 1 commit from spike/idp-claim-contract into main 2026-11-04 17:54:23 +01:00
Owner

Completes task 0.5's verification portion: userinfo endpoint probed live with an access token from the round trip — returns the full ADR-010 §4.1 claim contract (sub / email / email_verified / name / given_name / family_name / preferred_username / locale / updated_at), while the id_token carries auth assertions (iss/sub/aud/amr/azp/sid/at_hash).

Conclusion: no Drive validator changes required — the generic OIDC validator consumed Zitadel v4 tokens unchanged; Drive callbacks call userinfo post-exchange (one GET, verified working). Admin step-up (IDA-05) exists via Zitadel login-policy 2FA — config lands in task 2.8.

Contract table recorded in spike-notes.md. Closes #19

Completes task 0.5's verification portion: userinfo endpoint probed live with an access token from the round trip — returns the **full ADR-010 §4.1 claim contract** (sub / email / email_verified / name / given_name / family_name / preferred_username / locale / updated_at), while the id_token carries auth assertions (iss/sub/aud/amr/azp/sid/at_hash). Conclusion: **no Drive validator changes required** — the generic OIDC validator consumed Zitadel v4 tokens unchanged; Drive callbacks call userinfo post-exchange (one GET, verified working). Admin step-up (IDA-05) exists via Zitadel login-policy 2FA — config lands in task 2.8. Contract table recorded in spike-notes.md. Closes #19
Round trip now surfaces the access_token; userinfo probed live:
sub/email/email_verified/name/given_name/family_name/preferred_username/
locale/updated_at — the full ADR-010 §4.1 contract. id_token carries auth
assertions (iss/sub/aud/amr/azp/sid/at_hash); Drive callbacks must call
userinfo post-exchange (one GET, verified). Admin step-up (IDA-05) via
Zitadel login policy 2FA — config lands in task 2.8.

No Drive validator changes required — the generic OIDC validator consumed
Zitadel tokens unchanged. Spike notes updated with the contract table.

Closes #19 (task 0.5)

🤖 Generated with [ZCode](https://zcode.ai)

Co-Authored-By: ZCode <noreply@anthropic.com>
Author
Owner

ponytail-review (§2.4 AI first-pass) — Verdict: Ship. Docs-only + a spike-local endpoint change (access_token surfaced for probing — spike-local values, no secrets committed). Contract table matches the live evidence captured this session; userinfo path taken from the instance's own discovery document. Not checked: Zitadel version upgrades altering claim names (re-verify at Phase 2 pin).

**ponytail-review (§2.4 AI first-pass) — Verdict: Ship.** Docs-only + a spike-local endpoint change (access_token surfaced for probing — spike-local values, no secrets committed). Contract table matches the live evidence captured this session; userinfo path taken from the instance's own discovery document. Not checked: Zitadel version upgrades altering claim names (re-verify at Phase 2 pin).
amiryahaya deleted branch spike/idp-claim-contract 2026-11-04 17:54:24 +01:00
Sign in to join this conversation.
No description provided.