Support SASVIYA 4
saadjutt01 opened this issue · comments
Saad Jutt commented
Currently adapter is not able to perform sasjs auth
against SASVIYA 4.
Adapter is developed against SASVIYA 3.5 and never tested against SASVIYA 4, before.
Error message while try to perform sasjs auth
, it says loginRequiredError
Identified the difference in request
Current request has headers:
accept: /
content-type: multipart/form-data;
VIYA4 docs says to have:
Accept: application/json
Content-Type: application/x-www-form-urlencoded
ref links:
- https://blogs.sas.com/content/sgf/2021/09/24/authentication-to-sas-viya/
- https://developer.sas.com/apis/rest/#authentication-to-sas-viya
We should probably change that header, and hopefully it will still work on 3.5