Skip to content

Berlin Group SCA redirect + consent form wording fix - #7

Merged
simonredfern merged 2 commits into
OpenBankProject:developfrom
hongwei1:feature/remove-hydra-obp-oidc-only
Jul 15, 2026
Merged

Berlin Group SCA redirect + consent form wording fix#7
simonredfern merged 2 commits into
OpenBankProject:developfrom
hongwei1:feature/remove-hydra-obp-oidc-only

Conversation

@hongwei1

Copy link
Copy Markdown
Collaborator

Summary

  • Drive Berlin Group consent authorisation via the _links.scaRedirect SCA flow returned by OBP-API's create-consent response, instead of routing it through the OIDC authorization flow.
  • Relabel the UK (v3.1 + v4.0.1) and Berlin Group consent forms from "Give Consent" to "Create Consent": these forms only lodge the consent (client_credentials, status AWAITINGAUTHORISATION/received) — the PSU hasn't authorised anything yet at this step. The actual grant happens later, on the OIDC -> Portal SCA flow. The OBP consent form already used the correct "Create Consent Request" wording.

Test plan

  • Verified the Berlin Group SCA redirect change compiles (mvn compile -o)
  • Manually verified the relabelled forms render correctly for UK v3.1, UK v4.0.1, and Berlin Group flows

hongwei1 added 2 commits July 15, 2026 02:26
… flow

Berlin Group authorises consents with a Consent-ID header rather than an
OAuth token, so it has no code/id_token round-trip. On consent creation
send TPP-Redirect-URI / TPP-Nok-Redirect-URI (OBP-API stores them in the
consent JWT so Portal's SCA confirmation can send the browser back here),
and redirect to the returned _links.scaRedirect URL instead of building
an OIDC /auth URL; error out clearly if no scaRedirect is present. Fetch
the consent info in the main display handler via the Consent-ID header,
since the former fetch in the OAuth callback never ran for Berlin Group.
These forms only lodge the account-access consent (client_credentials,
status AWAITINGAUTHORISATION/received) — the PSU has not authorised
anything yet at this step. The actual grant happens later on the OIDC ->
Portal SCA flow. Give Consent was misleading; the OBP consent form already
used the correct Create Consent Request wording.
@simonredfern
simonredfern merged commit cb02c8f into OpenBankProject:develop Jul 15, 2026
@hongwei1
hongwei1 deleted the feature/remove-hydra-obp-oidc-only branch July 16, 2026 06:07
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