Skip to content

OIDC#2854

Merged
simonredfern merged 2 commits into
OpenBankProject:developfrom
constantine2nd:develop
Jul 9, 2026
Merged

OIDC#2854
simonredfern merged 2 commits into
OpenBankProject:developfrom
constantine2nd:develop

Conversation

@constantine2nd

Copy link
Copy Markdown
Contributor

No description provided.

Add a section comparing four allowlist policies (per instance, per app,
per app x environment, per tenant) with an implications matrix, rotation
guidance, and a note on the future Consumer-bound allowlist direction.
Recommends one Google OAuth client per app per environment.
…pin it with tests

The policy section claimed OBP auto-creates one Consumer per user per
Google client, keyed by <sub, azp>. That described the original
implementation and the stale scaladoc on OAuth2.getOrCreateConsumer, not
the current code: MappedConsumersProvider.getOrCreateConsumer resolves by
consumerId, then by Consumer.key == azp (pre-registered consumer takes
priority, displacing a stale auto-created twin), then by the (azp, iss)
pair — one Consumer per OAuth client per issuer, with sub stored but not
part of the lookup key.

- OAUTH2_IDENTITY_PROVIDERS.md: fix the implementation-fact paragraph,
  matrix row and policy 1/2 implications (per-app rate limits, metrics
  and the runtime Consumer disable switch already work at (azp, iss)
  granularity); rewrite 'Beyond the flat list' as 'Binding client IDs to
  registered Consumers (half implemented)' — attachment via key == azp
  exists today, registration-based rejection does not.
- OAuth2.scala: replace the stale <sub, azp> scaladoc with the actual
  lookup order (comment-only, no behaviour change).
- OAuth2ConsumerResolutionTest (new, 6 scenarios, all green): (azp, iss)
  granularity incl. sub-not-a-key, per-issuer separation, name-claim /
  description naming, azp-derived consumerId, pre-registered-consumer
  priority, stale-consumer displacement.
@sonarqubecloud

sonarqubecloud Bot commented Jul 9, 2026

Copy link
Copy Markdown

@simonredfern simonredfern merged commit a1c30b3 into OpenBankProject:develop Jul 9, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants