...
Code Block |
---|
{ "typ": "JWT", "alg": "PS256", "kid": "e4ce77c498e77000a25aa7b40e4a83f9" } . { "iss": "s6BhdRkqt3", "aud": "https://server.example.com", "response_type": "code", "redirect_uri": "https://openbanking.tpp1.ae/simple-redirect-url", "scope": "accounts", "state": "2616df22-899e-468b-b7af-927145b067cc", "authorization_details": [ { "type": "urn:openfinanceuae:account-access-consent:v1.1", "consent": { "ConsentId": "399e0065-9907-42cc-82b9-1ec4f273e3e9", "Permissions": [ "ReadAccountsBasic", "ReadAccountsDetail", "ReadBalances", "ReadBeneficiariesBasic", "ReadBeneficiariesDetail", "ReadTransactionsBasic", "ReadTransactionsDetail", "ReadTransactionsCredits", "ReadTransactionsDebits", "ReadScheduledPaymentsBasic", "ReadScheduledPaymentsDetail", "ReadDirectDebits", "ReadStandingOrdersBasic", "ReadStandingOrdersDetail" ], "ExpirationDateTime": "2024-03-28T15:27:13+0300", "TransactionFromDateTime": "2024-03-25T12:19:24+0300", "TransactionToDateTime": "2024-03-27T12:19:24+0300", "AccountType": ["Retail"], "AccountSubType": ["CurrentAccount"], "OpenFinanceBilling": { "UserType": "Retail", "Purpose": "AccountAggregation" } } } ] } |
Create the RAR Request using the signed JWT, and authenticated using private_key_jwt.
...
Code Block |
---|
POST /open-finance/auth/v1.1/par HTTP/1.1
Host: auth1.openfinanceplatform.ae
Content-Type: application/x-www-form-urlencoded
Accept: application/json
client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer
&client_assertion=eyJhbGciOiJIUzI1NiJ9.ew0KICAiaXNzIjogImM4NDIyNzg3LTFkZmYtNDI0ZC1iNjIwLTM1NmMwODcwYmVkNCIsDQogICJzdWIiOiAiYzg0MjI3ODctMWRmZi00MjRkLWI2MjAtMzU2YzA4NzBiZWQ0IiwNCiAgImF1ZCI6ICJhdXRoMS5sYWIub3BlbmJhbmtpbmcuc2EiLA0KICJqdGkiOiAiYThmZDQ2ZjctYTNiMy00MGQ5LTk2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pb25zRGV0YWlsIiwiUmVhZFRyYW5zYWN0aW9uc0NyZWRpdHMiLCJSZWFkVHJhbnNhY3Rpb25zRGViaXRzIiwiUmVhZFNjaGVkdWxlZFBheW1lbnRzQmFzaWMiLCJSZWFkU2NoZWR1bGVkUGF5bWVudHNEZXRhaWwiLCJSZWFkRGlyZWN0RGViaXRzIiwiUmVhZFN0YW5kaW5nT3JkZXJzQmFzaWMiLCJSZWFkU3RhbmRpbmdPcmRlcnNEZXRhaWwiXSwiQXV0aG9yaXphdGlvbkV4cGlyYXRpb25UaW1lV2luZG93IjoiNzIwOjAwOjAwIiwiRXhwaXJhdGlvbkRhdGVUaW1lIjoiMjAyNC0wMy0yOFQxNToyNzoxMyswMzAwIiwiVHJhbnNhY3Rpb25Gcm9tRGF0ZVRpbWUiOiIyMDI0LTAzLTI1VDEyOjE5OjI0KzAzMDAiLCJUcmFuc2FjdGlvblRvRGF0ZVRpbWUiOiIyMDI0LTAzLTI3VDEyOjE5OjI0KzAzMDAiLCJBY2NvdW50VHlwZSI6WyJVQUVPRi5SZXRhaWwiXSwiQWNjb3VudFN1YlR5cGUiOlsiQ3VycmVudEFjY291bnQiXSwiQ29uc2VudFB1cnBvc2UiOlsiQWNjb3VudCBBZ2dyZWdhdGlvbiIsIkUtU3RhdGVtZW50Il19fV19.8T2xivs2zqFdxyrs8h3TWsMxigzk9QcsamU9Dj-2GDs |
...
Code Block |
---|
HTTP/1.1 200 OK Content-Type:application/json x-fapi-interaction-id: 2e974f01-d111-4078-9a19-7a9b385e637c { "Data": { "ConsentId": "aac-69255d98-ab0e-4758-92a7-cacbf3073efa", "CreationDateTime": "2024-06-27T15:27:13+0300", "Status": "Authorized", "ConsentFlags": { "PartlyAuthorized": "2024-06-27T16:27:13+0300" }, "StatusUpdateDateTime": "2024-06-27T16:27:13+0300", "Permissions": [ "ReadAccountsBasic", "ReadAccountsDetail", "ReadBalances", "ReadBeneficiariesBasic", "ReadBeneficiariesDetail", "ReadTransactionsBasic", "ReadTransactionsDetail", "ReadTransactionsCredits", "ReadTransactionsDebits", "ReadScheduledPaymentsBasic", "ReadScheduledPaymentsDetail", "ReadDirectDebits", "ReadStandingOrdersBasic", "ReadStandingOrdersDetail" ], "ExpirationDateTime": "2024-06-28T15:27:13+0300", "TransactionFromDateTime": "2024-06-25T12:19:24+0300", "TransactionToDateTime": "2024-06-27T12:19:24+0300", "AccountType": [ "Retail" ], "AccountSubType": [ "CurrentAccount" ], }, "SubscriptionOpenFinanceBilling": { "UserType": "Retail", "Purpose": "AccountAggregation" } }, "Subscription": { "Webhook": { "Url": "https://api.tpp1.com/webhook/callbackUrl", "IsActive": false } }, "Links": { "Self": "https://rs1.openfinanceplatform.ae/open-finance/account-information/v1.1/account-access-consents/aac-69255d98-ab0e-4758-92a7-cacbf3073efa" }, "Meta": {} } |
...
Code Block |
---|
{
"typ": "JWT",
"alg": "PS256",
"kid": "e4ce77c498e77000a25aa7b40e4a83f9"
}
.
{
"iss": "s6BhdRkqt3",
"iat": 1669393154,
"exp": 1669393496,
"nbf": 1669393154,
"aud": "https://server.example.com",
"response_type": "code",
"redirect_uri": "https://openbanking.tpp1.ae/simple-redirect-url",
"scope": "accounts",
"state": "2616df22-899e-468b-b7af-927145b067cc",
"authorization_details": [
{
"type": "urn:openfinanceuae:account-access-consent:v1.1",
"consent": {
"ConsentId": "399e0065-9907-42cc-82b9-1ec4f273e3e9",
"CreationDateTime": "2024-03-27T15:27:13+0300",
"Status": "Authorized",
"StatusUpdateDateTime": "2024-03-27T16:27:13+0300",
"Permissions": [
"ReadAccountsBasic",
"ReadAccountsDetail",
"ReadBalances",
"ReadBeneficiariesBasic",
"ReadBeneficiariesDetail",
"ReadTransactionsBasic",
"ReadTransactionsDetail",
"ReadTransactionsCredits",
"ReadTransactionsDebits",
"ReadScheduledPaymentsBasic",
"ReadScheduledPaymentsDetail",
"ReadDirectDebits",
"ReadStandingOrdersBasic",
"ReadStandingOrdersDetail"
],
"ExpirationDateTime": "2024-03-28T15:27:13+0300",
"TransactionFromDateTime": "2024-03-25T12:19:24+0300",
"TransactionToDateTime": "2024-03-27T12:19:24+0300",
"AccountType": ["Retail"],
"AccountSubType": ["CurrentAccount"],
"OpenFinanceBilling": {
"UserType": "Retail",
"Purpose": "AccountAggregation"
}
},
"Subscription": {
"Webhook": {
"Url": "https://api.tpp1.com/webhook/callbackUrl",
"IsActive": false
}
}
}
]
} |
...