Czech-BA / COBS

This repository contains the technical form of the Czech Standard for Open Banking defined by the CBA working group.
29 stars 7 forks source link

Add connection testing endpoint #4

Open petrdvorak opened 6 years ago

petrdvorak commented 6 years ago

Currently, the OAuth 2.0 flow does not provide any means of checking that the access token is still valid, and also there is no way to determine a connection name. This type of service is, however, required in couple more sophisticated frameworks, such as Spring Social, and for a good reason.

Please provide an endpoint in a following format in the default auth realm:

GET /my/profile

WEB-API-key: 1234567891234567890
Authorization: Bearer 1234567891234567890

{
  "customerId": "ABC123",
  "firstname": "Jan",
  "middlenames": [
    "Baptista"
  ],
  "lastname": "Novak"
}