7. Open Banking UK
• FAPI Part 2
• Client Credentials Grant Type (OAuth 2.0) / OIDC Hybrid
Flow
• Request Object
• Mutual TLS
7
Source: Open Banking Security Profile - Implementer's Draft v1.1.2
https://openbanking.atlassian.net/w iki/spaces/DZ/pages/83919096/Open+Banking+Security+Profile+-+Implementer+s+Draft+v1.1.2
8. Open Banking UK
口座情報等取得のフロー
1. PSU (Payment Service User) がAISP (Account
Information Service Provider) に情報取得開始を許可
2. AISPがASPSP (Account Servicing Payment Service
Provider) にPOST /account-resource
(Mutual TLS, Client Credentials Grant Type)
3. ASPSPがPISPに “AccountRequestId” を返却
4. AISPがAccountRequestIdを含む Request Objectを生成し
ASPSPに認可リクエスト
(OIDC Hybrid Flow)
5. ASPSPがPSUを認証
6. ASPSPがAISPに認可コードを返却
7. AISPがASPSPに認可コードを送信しアクセストークンを取得
(Mutual TLS)
8. AISPがアクセストークンを使ってGET /accounts
(Mutual TLS)
8
Source: Account and Transaction API - v2.0.0
https://openbanking.atlassian.net/w iki/spaces/DZ/pages/127009546/Account+and+
Transaction+API+Specification+-+v2.0.0
9. Open Banking UK
決済指示のフロー
1. PSUがPISP (Payment Initiation Service Provider) に決済指示
開始を許可
2. PISPがASPSPにPOST /payments
(Mutual TLS, Client Credentials Grant Type)
3. ASPSPがPISPに ”PaymentId” を返却
4. PISPが PaymentId を含む Request Objectを生成し、ASPSPに
認可リクエスト
(OIDC Hybrid Flow)
5. ASPSPがPSUを認証
6. ASPSPがPISPに認可コードを返却
7. PISPがASPSPに認可コードを送信しアクセストークンを取得
(Mutual TLS)
8. PISPがアクセストークンを使ってPOST /payment-submissions
(Mutual TLS)
9. Optionally retrieve the status of a payment setup or
submission
9
Source: Payment Initiation API - v1.1.0
https://openbanking.atlassian.net/w iki/spaces/DZ/pages/5786479/Payment+Initiation+API+Specification+-+v1.1.0
10. OIDC Hybrid Flowによる決済指示フローの例 (1)
• Slovak Banking API Standard
– OB UKと同様、PISPは決済のID (orderId) をASPSPから取得後、それをRequest Objectに格納し、認可
リクエストを開始する
10
Source: Slovak Banking API Standard Version 1.1 http://w ww.sbaonline.sk/files/subory/projekty/sbas/sbas_ver1.1-final.pdf
11. OIDC Hybrid Flowによる決済指示フローの例 (2)
• ハンガリー MKB銀行
– Open Banking UKのSecurity
Profileを活用
– OB UKと同様、PISPは決済の
ID (openbanking_intent_id)を
ASPSPから取得後、それを
RequestObjectに格納し、認可
リクエストを開始する
11
Source: Account and Transaction API Specification
https://portal.sandbox.mkb.hu/api-documentation/account-info
12. Berlin Group “NextGenPSD2”
• 認証・認可フローが大別して4種類ある
– Redirect SCAApproach
– OAuth2 SCAApproach
– Decoupled SCAApproach
– Embedded SCAApproach
12
13. Berlin Group “NextGenPSD2”
Redirect / OAuth2 SCA Approach
• PSUをASPSPにリダイレ
クトしてPSUの同意を確
認
• “OAuth2” はRedirectの
一種
– Authorization Server
Metadataを用いてリダイ
レクト先を動的に決定
13
Source: NextGenPSD2 XS2A Framew orkImplementation Guidelines Version 1.1
https://docs.wixstatic.com/ugd/c2914b_5351b289bf844c6881e46ee3561d95bb.pdf
14. Berlin Group “NextGenPSD2”
Decoupled SCA Approach
• ASPSPがPISP/AISPと
は別の経路を介して
PSUの同意を確認
14
Source: NextGenPSD2 XS2A Framew orkImplementation Guidelines Version 1.1
https://docs.wixstatic.com/ugd/c2914b_5351b289bf844c6881e46ee3561d95bb.pdf
15. Berlin Group “NextGenPSD2”
Embedded SCA Approach
• ASPSPがPISP/AISPを介して
PSUの同意を確認
15
Source: NextGenPSD2 XS2A Framew orkImplementation Guidelines Version 1.1
https://docs.wixstatic.com/ugd/c2914b_5351b289bf844c6881e46ee3561d95bb.pdf
16. Berlin Group “NextGenPSD2”
OAuth 2.0との関係
• “Optional Usage” という位置付け
• PISP/AISPは、“pre-step” の結果として、もしくはOAuth
SCA Approachを実行した結果として、ASPSPからアクセス
トークンを取得し、API (XS2A interface) を呼び出し
16