How to validate LTPA token in a WAS java application?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > How to validate LTPA token in a WAS java application?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to validate LTPA token in a WAS Java application?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-16-05 12:49 PM

Hi, all:

How could I validate the current user identity? My application is deployed i
n WAS5.x and I want to implement  SSO via LTPA.I know it's a token stored in
 Http header
but how could I validate this token and get the current User ID from it? Wha
t's more if the token is timeout how could my application reply the user's r
equest? logout this session or something else?

Blue Juice





[ Post a follow-up to this message ]



    Re: How to validate LTPA token in a WAS Java application?  
Paul Ilechko


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-17-05 07:48 AM

sunch_2002@hotmail.com wrote:

> Hi, all:
>
> How could I validate the current user identity? My application is
> deployed in WAS5.x and I want to implement  SSO via LTPA.I know it's
> a token stored in Http header but how could I validate this token and
> get the current User ID from it? What's more if the token is timeout
> how could my application reply the user's request? logout this
> session or something else?

You don't validate the token, the container does. You don't get the
current userid from the token, you should use the standard J2EE methods
of asking the container for the user. See the J2EE spec for info on
getUserPrincipal() and getCallerPrincipal().

If the LTPA token expires there will automatically be a challenge issued
of whatever type you have configured - basic, form based or
certificate. WebSphere takes care of this automatically.

Expiration of a security token has nothing to do with expiration of the
HTTP Session, they have completely independent lifecycles.






[ Post a follow-up to this message ]



    Re: How to validate LTPA token in a WAS Java application?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-19-05 01:49 AM

Can you give me some examples about how to handle LTPA timeout? Can I redire
ct the login form to a special page?





[ Post a follow-up to this message ]



    Re: How to validate LTPA token in a WAS Java application?  
Paul Ilechko


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-19-05 11:04 PM

sunch_2002@hotmail.com wrote:
> Can you give me some examples about how to handle LTPA timeout? Can I redirect the
 login form to a special page?

The only way i know that you might be able to tell that you're in a
timeout rather than an initial login, is that in an initial login
situation there will be no jsessionid  cookie. You could write a servlet
filter to check for this.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:50 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register