How do I get user credential in Tomcat

2005-08-01 Thread Ikonne, Ike
Hi all,

 

I am implementing Basic authentication, I would like to make both the
Principal and Credential visible to my

servlet being managed by Tomcat, I know how to get the Principal, but I
can't seem to find a away to get the

Credential.  Does anyone have an idea as to how I can get this
information inside my servlet.

 

Thanks,

 

Ike

 



Re: How do I get user credential in Tomcat

2005-08-01 Thread Jo
Previous mails on 'j-security_check  sessions' could give you a useful
information.
Since you're looking at Basic authentication, try to extract the credential
from the authorization header.

Jo.-

- Original Message - 
From: Ikonne, Ike [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, August 02, 2005 7:30 AM
Subject: How do I get user credential in Tomcat


 Hi all,



 I am implementing Basic authentication, I would like to make both the
 Principal and Credential visible to my

 servlet being managed by Tomcat, I know how to get the Principal, but I
 can't seem to find a away to get the

 Credential.  Does anyone have an idea as to how I can get this
 information inside my servlet.



 Thanks,



 Ike





 !DSPAM:42ee992a207451223150608!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I get user credential in Tomcat

2005-08-01 Thread Chris Holden
Well thanks to Frank I have been looking into filters so I'll probably use
j_security_check and a filter to do what I want.

I did look at BASIC authentication as an alternative, as you can extract the
user:pass combo from the Authorization header with a little base64decoding,
have a look at this site you might find it useful
http://www.unix.org.ua/orelly/java-ent/servlet/ch08_01.htm#ch08-3-fm2xml


Chris.


- Original Message - 
From: Jo [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, August 02, 2005 12:36 AM
Subject: Re: How do I get user credential in Tomcat


 Previous mails on 'j-security_check  sessions' could give you a useful
 information.
 Since you're looking at Basic authentication, try to extract the
credential
 from the authorization header.

 Jo.-

 - Original Message - 
 From: Ikonne, Ike [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Tuesday, August 02, 2005 7:30 AM
 Subject: How do I get user credential in Tomcat


  Hi all,
 
 
 
  I am implementing Basic authentication, I would like to make both the
  Principal and Credential visible to my
 
  servlet being managed by Tomcat, I know how to get the Principal, but I
  can't seem to find a away to get the
 
  Credential.  Does anyone have an idea as to how I can get this
  information inside my servlet.
 
 
 
  Thanks,
 
 
 
  Ike
 
 
 
 
 
  !DSPAM:42ee992a207451223150608!
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do I get user credential in Tomcat

2005-08-01 Thread Ikonne, Ike
Hi Chris,

Thanks, the information you provided is very useful.

Ike

-Original Message-
From: Chris Holden [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 01, 2005 6:48 PM
To: Tomcat Users List
Subject: Re: How do I get user credential in Tomcat

Well thanks to Frank I have been looking into filters so I'll probably
use
j_security_check and a filter to do what I want.

I did look at BASIC authentication as an alternative, as you can extract
the
user:pass combo from the Authorization header with a little
base64decoding,
have a look at this site you might find it useful
http://www.unix.org.ua/orelly/java-ent/servlet/ch08_01.htm#ch08-3-fm2xml


Chris.


- Original Message - 
From: Jo [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, August 02, 2005 12:36 AM
Subject: Re: How do I get user credential in Tomcat


 Previous mails on 'j-security_check  sessions' could give you a
useful
 information.
 Since you're looking at Basic authentication, try to extract the
credential
 from the authorization header.

 Jo.-

 - Original Message - 
 From: Ikonne, Ike [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Tuesday, August 02, 2005 7:30 AM
 Subject: How do I get user credential in Tomcat


  Hi all,
 
 
 
  I am implementing Basic authentication, I would like to make both
the
  Principal and Credential visible to my
 
  servlet being managed by Tomcat, I know how to get the Principal,
but I
  can't seem to find a away to get the
 
  Credential.  Does anyone have an idea as to how I can get this
  information inside my servlet.
 
 
 
  Thanks,
 
 
 
  Ike
 
 
 
 
 
  !DSPAM:42ee992a207451223150608!
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do I get user credential in Tomcat

2005-08-01 Thread Ikonne, Ike
Hi Jo,

Thanks, that's exactly what I was looking for.

Ike

-Original Message-
From: Jo [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 01, 2005 6:36 PM
To: Tomcat Users List
Subject: Re: How do I get user credential in Tomcat

Previous mails on 'j-security_check  sessions' could give you a useful
information.
Since you're looking at Basic authentication, try to extract the
credential
from the authorization header.

Jo.-

- Original Message - 
From: Ikonne, Ike [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, August 02, 2005 7:30 AM
Subject: How do I get user credential in Tomcat


 Hi all,



 I am implementing Basic authentication, I would like to make both the
 Principal and Credential visible to my

 servlet being managed by Tomcat, I know how to get the Principal, but
I
 can't seem to find a away to get the

 Credential.  Does anyone have an idea as to how I can get this
 information inside my servlet.



 Thanks,



 Ike





 !DSPAM:42ee992a207451223150608!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]