I have configured my CAS
server to activate REST
authentication, as per these instructions. However, in order for it to work, I must submit my credentials in plain text (content type text/html
or xml
) and not application/x-www-form-urlencoded
as per the instructions. The credentials are lost when sent in the latter format.
I am uncomfortable sending my login credentials in plain text. Is this a bug in CAS and how can it be fixed? I am assuming it is less secure to send login credentials as text content type vs application, as the latter (I assume) does hash (or somehow else obfuscates) the content sent.
I should also mention that I had to make a fix to a bug in CAS due to which credentials were being lost regardless of the content type, by implementing this solution in my maven overlay
. After that, only text-based content types worked and CAS does authenticate (albeit I find it annoying that the service returns HTML and not XML/JSON or even plain text, for the ease of programmatic processing).
RELATED: REST API endpoint /v1/tickets appears to lose credential request parameters