You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by banto <ba...@gmail.com> on 2010/02/12 12:12:24 UTC
digest algorithm in BASIC auth
Hi all,
my tomcat conf has basic auth and i have a the following in web.xml
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>The HTML Application</realm-name>
</login-config
now i´m seeing that the password during the auth is digested and has value.
Authorization: Basic YW50b25pbzpwYXNzd29yZA==
My problem is that i cannot understand where it comes from...
I´m trying all the combination, i mean i´m digesting
user:realm:password with all of the algorithms but i cannot get that value.
does anyone of you can suggest me where i´m missing?
thanks you all,
Antonio
--
View this message in context: http://old.nabble.com/digest-algorithm-in-BASIC-auth-tp27562000p27562000.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: digest algorithm in BASIC auth
Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/2/12 banto <ba...@gmail.com>:
> I´m trying all the combination, i mean i´m digesting
>
> user:realm:password with all of the algorithms but i cannot get that value.
>
See RFC 2617 or at least
http://en.wikipedia.org/wiki/Basic_access_authentication
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: digest algorithm in BASIC auth
Posted by banto <ba...@gmail.com>.
yes!! that´s base64 encoding, you are perfectly right!!!
thanks
Christopher Schultz-2 wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Antonio,
>
> On 2/13/2010 3:01 AM, banto wrote:
>> I was confused because in the HTTP message exchanges between the browser
>> and
>> tomcat i saw that tomcat sent back to the browser the realm value. for
>> that
>> i thought was involved some kind of digest.
>
> The realm name is present in both BASIC and DIGEST authentication
> mechanisms.
>
> Were you able to get things working?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkt2u5cACgkQ9CaO5/Lv0PDxlACfQeCnbfzDtGaK02LwdKwjzh3a
> tu4An2QCo/tCLUAWQNLJzy8GKQV0q49J
> =cKxS
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/digest-algorithm-in-BASIC-auth-tp27562000p27576143.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: digest algorithm in BASIC auth
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Antonio,
On 2/13/2010 3:01 AM, banto wrote:
> I was confused because in the HTTP message exchanges between the browser and
> tomcat i saw that tomcat sent back to the browser the realm value. for that
> i thought was involved some kind of digest.
The realm name is present in both BASIC and DIGEST authentication
mechanisms.
Were you able to get things working?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkt2u5cACgkQ9CaO5/Lv0PDxlACfQeCnbfzDtGaK02LwdKwjzh3a
tu4An2QCo/tCLUAWQNLJzy8GKQV0q49J
=cKxS
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: digest algorithm in BASIC auth
Posted by banto <ba...@gmail.com>.
hi Chris,
thank you very much.
I was confused because in the HTTP message exchanges between the browser and
tomcat i saw that tomcat sent back to the browser the realm value. for that
i thought was involved some kind of digest.
Antonio
Christopher Schultz-2 wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Antonio,
>
> On 2/12/2010 6:12 AM, banto wrote:
>> my tomcat conf has basic auth and i have a the following in web.xml
>>
>> <login-config>
>> <auth-method>BASIC</auth-method>
>> <realm-name>The HTML Application</realm-name>
>> </login-config
>
> That is HTTP BASIC AUTH.
>
>> now i´m seeing that the password during the auth is digested and has
>> value.
>>
>> Authorization: Basic YW50b25pbzpwYXNzd29yZA==
>>
>> My problem is that i cannot understand where it comes from...
>
> That's base64(username + ':' + password). Your username is 'antonio' and
> your password is 'password' in this case.
>
>> I´m trying all the combination, i mean i´m digesting
>>
>> user:realm:password with all of the algorithms but i cannot get that
>> value.
>
> You are confusing the above with HTTP DIGEST AUTH, which requires
> md5(user + ':' + realm + ':' + password)
>
> Along with Konstantin's reference, you should also read this one:
> http://en.wikipedia.org/wiki/Http_digest_authentication
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkt1pxoACgkQ9CaO5/Lv0PCo1gCgoHNO/WVMn7BlX48B1VlavGte
> MfYAn3AjZY6XyRHFIg2xBCFL7JEn+k5k
> =w9Gu
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/digest-algorithm-in-BASIC-auth-tp27562000p27573009.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: digest algorithm in BASIC auth
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Antonio,
On 2/12/2010 6:12 AM, banto wrote:
> my tomcat conf has basic auth and i have a the following in web.xml
>
> <login-config>
> <auth-method>BASIC</auth-method>
> <realm-name>The HTML Application</realm-name>
> </login-config
That is HTTP BASIC AUTH.
> now i´m seeing that the password during the auth is digested and has value.
>
> Authorization: Basic YW50b25pbzpwYXNzd29yZA==
>
> My problem is that i cannot understand where it comes from...
That's base64(username + ':' + password). Your username is 'antonio' and
your password is 'password' in this case.
> I´m trying all the combination, i mean i´m digesting
>
> user:realm:password with all of the algorithms but i cannot get that value.
You are confusing the above with HTTP DIGEST AUTH, which requires
md5(user + ':' + realm + ':' + password)
Along with Konstantin's reference, you should also read this one:
http://en.wikipedia.org/wiki/Http_digest_authentication
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkt1pxoACgkQ9CaO5/Lv0PCo1gCgoHNO/WVMn7BlX48B1VlavGte
MfYAn3AjZY6XyRHFIg2xBCFL7JEn+k5k
=w9Gu
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org