Re: FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jan, On 6/26/13 7:14 AM, Jan Vávra wrote: > Hello, When I create user with password with czech String "ŽežUlička.1" the browser sends correctly this string as: POST http://localhost:70/myapp/j_security_check HTTP/1.1 Conte

Re: FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread Jan Vávra
Hello, When I create user with password with czech String "ŽežUlička.1" the browser sends correctly this string as: POST http://localhost:70/myapp/j_security_check HTTP/1.1 Content-Type: application/x-www-form-urlencoded j_username=p&j_password=%C5%BDe%C5%BEUli%C4%8Dka.1 The browser is not sen

Re: FORM based authentication and utf-8 encoding of credentials

2013-06-24 Thread Mark Thomas
On 24/06/2013 12:52, Jan Vávra wrote: >> Hello, >>I'm successfully using form based authenntication when login or >> password contains only letters from English alphabet. OK. That means you've got the basics set up correctly. >> I have also written own realm. I'd suggest testing with the de

Re: FORM based authentication and utf-8 encoding of credentials

2013-06-24 Thread Jan Vávra
Well, it is custom created and managed xml file. But the core of problem is in the string credentials in method public Principal authenticate(String username, String credentials). If the string was encoded properly (in java as utf-16) the credentials.length would be equal to 11 but its real leng