User Tools

Site Tools


nocode:authentication-result

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

nocode:authentication-result [2019/08/13 06:26]
740803864 created
nocode:authentication-result [2019/08/13 06:41] (current)
740803864
Line 1: Line 1:
 ====== Authentication result ====== ====== Authentication result ======
 +In some circumstances we can need to know authentication result and be able react to that. Last authentication result is saved in HTTP attributes. It can be found under attribute name ''AAA_AUTH_RESULT''. **It is neccessary to realize base64 decoding** to gain readable JSON value. When authentication was successful, we will see something like:
 +
 +<code javascript>
 +{
 +  "status": "OK",
 +  "data": null,
 +  "redirect": null
 +}
 +</code>
 +
 +Unsuccessful response can be like:
 +
 +<code javascript>
 +{
 +  "status": "ERROR",
 +  "data": {
 +    "message": "Wrong personal factor.",
 +    "key": null,
 +    "arguments": null,
 +    "statusAIM": "active",
 +    "statusAuth": "OK",
 +    "statusLF": "KO"
 +  },
 +  "redirect": "https://dev-bank.demo.aducid.com:443/bank-nc/loginPage"
 +}
 +</code>
 +
nocode/authentication-result.1565677591.txt.gz ยท Last modified: 2019/08/13 06:26 by 740803864