Consume API after Consent Authorization

Description

This workflow starts with the redirect link leaving from either Authorize Consent Redirect Approach or Authorize Consent Embedded Approach. This redirect link will be used by the FinTechApi to retrieve a corresponding Token that can be used to request services on behalf of the PSU.

As long as this token is valid, token will be used to perform corresponding service request on behalf on the PSU.

Diagram

Session diagram

Use Cases

010. FinTechApi.consentAuthDone

The redirect request coming from the ConsentAuthorisationApi contains a redirectCode. This request will be forwarded by the FinTechApi to the TppBankingApi. The request contains following information:

redirectCode

Available in the redirect url. This information will be used to retrieve the authorization token from the TppBankingApi. So the information needs not be processed by th FinTechApi

FinTechConsentSessionCookie

Available in the request header. This cookie shall be set for the Max time given to the PSU for the authorization of the corresponding consent. The cookie can be bound to the end point FinTechApi.consentAuthDone so it does no need to be transported to the server on other requests.

finTechConsentSessionState

Available in the redirect url. Will be used to read and validate the corresponding FinTechConsentSessionCookie.

The finTechConsentSessionState will be used to read and validate the corresponding FinTechConsentSessionCookie.

030. TppBankingApi.code2Token

This end point is invoked by the FinTechApi to retrieve token used to send subsequent service requests to the TppBankingApi.

040. BankingProtocol.code2Token

Forward request to banking protocol.

050. Store Token (PsuConsentSession)

The returned PsuConsentSession is stored by the FinTechApi for future use.

060 .. 67 Service Request

The returned token is used to invoke the service request (ListTransactions). Service result is returned to the FinTechApi and displayed to the PSU.