Problem with char encoding when loging in

33 views
Skip to first unread message

Nils Meinhard

unread,
May 20, 2024, 7:55:09 AMMay 20
to jasig-cas-user
Hi we have a problem when a user tries to login to our CAS-server with a password that contains Swedish chars. It seems like the browser is url-encoding the username and password as UTF-8 but our CAS-server is decing them as "iso-8859–1".

We have tried all the things we could think of:
In cas.properties we have configured these parameters:
server.servlet.encoding.charset=UTF-8 server.servlet.encoding.force-response=true server.servlet.encoding.force=true

cas.authn.jdbc.encode[0].password-encoder.character-encoding=UTF-8 

And we have tried to set the locale on our server:
export LANG='en_US.ISO-8859-1'

 and also tried to define file-encoding when starting our app, e.g.
-Dfile.encoding='UTF-8'


cas.authn.jdbc.encode[0].password-encoder.character-encoding=UTF-8
export LANG='en_US.ISO-8859-1' -Dfile.encoding='UTF-8'
We are running CAS ver 7.0.1

Grateful for any help!
Regards
Nils
Reply all
Reply to author
Forward
0 new messages