Skip to content

OIDC#2829

Open
constantine2nd wants to merge 5 commits into
OpenBankProject:developfrom
constantine2nd:develop
Open

OIDC#2829
constantine2nd wants to merge 5 commits into
OpenBankProject:developfrom
constantine2nd:develop

Conversation

@constantine2nd

Copy link
Copy Markdown
Contributor

No description provided.

OBP-API is used as a pure OAuth2 resource server: the client/BFF runs the OIDC
login against the provider (Keycloak) and calls OBP with Authorization: Bearer.
The server-side relying-party callback (/auth/openid-connect/callback{,-1,-2})
that minted a DirectLogin token was unused in this model and is removed.

- delete Http4sOpenIdConnect (routes, OpenIdConnectConfig, handler, helpers)
- unmount its routes from Http4sApp
- drop now-orphaned DirectLogin.issueTokenForUser (only caller was the callback)
- inline the "OpenID Connect" consumer-description constant in OAuth2
- delete the callback's two test suites
- update the stale Boot comment

Bearer-JWT validation (OAuth2Login / oauth2.keycloak.*) is unchanged;
Google-via-Keycloak login verified working after a clean rebuild.
…lback

Add a polymorphic bill/utility payment to v7.0.0:
POST /banks/BANK_ID/accounts/ACCOUNT_ID/VIEW_ID/transaction-request-types/
UTILITY/transaction-requests. The destination biller is a QualifiedIdentifier
whose scheme must be a registered routing scheme of category UTILITY or BILL
(e.g. TZ.UTILITY_METER for a prepaid electricity meter, TZ.BILL_CONTROL_NUMBER
for a bill). One endpoint serves all utility/bill rails; verify the destination
via POST .../payees/lookup, then pay quoting verified_payee_lookup_id
(Confirmation-of-Payee handshake). Plugs into the existing createTransactionRequestv400
pipeline.

- Http4s700: createTransactionRequestUtility endpoint + ResourceDoc
- JSONFactory700: request/response shapes (payer block + callback block) + factory
- ErrorMessages: OBP-30546..30549
- code.utilitypayment: UtilityPaymentCallback persistence + fire-and-forget
  OkHttp dispatcher; a failed/unreachable callback never fails the payment
- Boot: register UtilityPaymentCallback table
- commons: add UTILITY to TransactionRequestTypes enum
- tests: 5 Http4s700RoutesTest scenarios (401, three 400s, 201 with persisted callback)

Implementation is vendor-neutral: routing schemes and examples use generic
names (TZ.UTILITY_METER, TZ.BILL_CONTROL_NUMBER) and placeholder sample data.
The OBP-as-relying-party OpenID Connect callback was removed in 91fa165;
OBP-API is now a pure OAuth2 resource server (the client/BFF runs the OIDC
login and calls OBP with a Bearer JWT). The openid_connect.* / openid_connect_$n.*
props (enabled, check_session_state, show_tokens, response_mode/type, scope,
and every per-provider client_id/client_secret/callback_url/endpoint.*/
button_text) have no readers left.

Remove the dead block from sample.props.template, replace it with a breadcrumb
pointing to the live oauth2.* resource-server props, and restore the OBP-OIDC
oauth2 block to its original form.
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

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.

1 participant