Sahamati / aa-redirection-guidelines

Guidelines for interaction between FIU and AA on the user’s device.
https://sahamati.gitbook.io/aa-redirection-guidelines
Apache License 2.0
6 stars 9 forks source link

Update specification for LSP usecase #4

Closed avengedpeak closed 2 years ago

avengedpeak commented 2 years ago

The specs have been updated to include redirection from a non-FIU participant i.e. an LSP. The current AA specs handle only single FIU use cases. In case of an LSP, a loan application is sent to multiple FIUs and hence, multiple consents are created for the same user. To accommodate this change and enable LSPs to show multiple consents, an array of consent handles need to be managed by the AA.

dheerajkhardwal commented 2 years ago

Points to consider with currently proposed changes:

  1. Extending current ecreq/ecres format (form-urlencoded) to introduce array based parameter is not ideal. For example:

    • Request fields will take the shape: ...&srcref="consentHandleUUID01"&srcref="consentHandleUUID02"&srcref="consentHandleUUID03"
    • Response fields will take even more complex shape: srcref[0].status="S"&srcref[0].errorCode="0"&srcref[0].consentHandle="consentHandleUUID00"&srcref[1].status="..."&srcref[1].errorCode="0"

    Should JSON format be considered instead of form-urlencoded?

    Relevant references: a. https://dev.to/bcanseco/request-body-encoding-json-x-www-form-urlencoded-ad9 b. https://stackoverflow.com/questions/12042476/normal-form-submission-vs-json/26527335#26527335

  2. Further, with increased query parameters' length, we have to consider URL length limitations of browsers/servers.

  3. A root level errorCode field should be introduced to handle common errors across all requested consent handles.

    • Such as, Invalid request, User authentication failed.
    • This may also call for splitting of error codes