Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feature: Add Berlin Group PSD2 signature support#155

Open
constantine2nd wants to merge 2 commits intoOpenBankProject:develop from
constantine2nd:develop
Open

feature: Add Berlin Group PSD2 signature support #155
constantine2nd wants to merge 2 commits intoOpenBankProject:develop from
constantine2nd:develop

Conversation

@constantine2nd
Copy link
Collaborator

@constantine2nd constantine2nd commented Feb 11, 2026

Files Created

  1. server/types/berlin-group.ts

    • TypeScript interfaces: BerlinGroupConfig, BerlinGroupHeaders, BerlinGroupSessionData
  2. server/services/BerlinGroupSignatureService.ts

    • New @service() class that: - Loads private key and certificate PEM files from VITE_BG_PRIVATE_KEY_PATH and VITE_BG_CERTIFICATE_PATH at construction - isEnabled() checks if certificates are loaded - static isBerlinGroupPath(path) detects "/berlin-group/" in request paths - generateHeaders(method, body, consentId?) generates required PSD2 headers: Date X-Request-ID Digest (SHA-256) Signature (RSA-SHA256) TPP-Signature-Certificate PSU headers Redirect URIs (POST only) Optional Consent-ID

Files Modified

  1. server/services/OBPClientService.ts
    • get(), create(), update(), discard() now check isBerlinGroupPath() && isEnabled()
    • Routes Berlin Group requests to new private method requestWithBerlinGroupHeaders()
    • Merges signature headers with op

Files Created
1. server/types/berlin-group.ts
 - TypeScript interfaces: BerlinGroupConfig, BerlinGroupHeaders,
 BerlinGroupSessionData
2. server/services/BerlinGroupSignatureService.ts
 - New @service() class that:
 - Loads private key and certificate PEM files from
 VITE_BG_PRIVATE_KEY_PATH and VITE_BG_CERTIFICATE_PATH at
 construction
 - isEnabled() checks if certificates are loaded
 - static isBerlinGroupPath(path) detects "/berlin-group/" in
 request paths
 - generateHeaders(method, body, consentId?) generates required PSD2
 headers:
 Date
 X-Request-ID
 Digest (SHA-256)
 Signature (RSA-SHA256)
 TPP-Signature-Certificate
 PSU headers
 Redirect URIs (POST only)
 Optional Consent-ID
Files Modified
3. server/services/OBPClientService.ts
 - get(), create(), update(), discard() now check
 isBerlinGroupPath() && isEnabled()
 - Routes Berlin Group requests to new private method
 requestWithBerlinGroupHeaders()
 - Merges signature headers with op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

Comments

AltStyle によって変換されたページ (->オリジナル) /