SiteminderTokenCredential - How to use the
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > SiteminderTokenCredential - How to use the




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

    SiteminderTokenCredential - How to use the  
shantanu.yelwande@kpitcummins.com


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


 
12-19-07 06:43 AM

Hi,<br />
We have a servlet application that is protected by siteminder which in the s
ame single sign on domain as the portal server, but on a different websphere
 application server. We need to connect to this servlet application through 
portlet using the credentia
l vault as it is the preferred way to single sign on to backend applications
 in portal. We are using the SiteMinderTokenCredential object for authentica
ting with the backend application. We have tried to execute the following co
de.<br />
<br />
// Get the subject from the VaultService<br />
Subject subject = vaultService.getUserSubject(portletRequest);	<br />
<br />
// Get the SiteMinderTokenCredential. . .<br />
Object[] creds =<br />
subject. getPrivateCredentials(SiteMinderTokenCre
dential.class).toArray();<br
 />
<br />
SiteMinderTokenCredential credential = (SiteMinderTokenCredential) creds[
;0];<br />
<br />
// This is the protected servlet URL<br />
String protectedURL = "Protected servlet URL";<br />
<br />
HttpURLConnection conn = credential. getAuthenticatedConnection(protectedURL)

;<br />
<br />
The issue is subject.getPrivateCredentials() always return an empty array. W
e tried replacing the "SiteMinderTokenCredential.class" with LtpaTokenCreden
tial, WebSealTokenCredential, but it still returns an empty array.<br />
<br />
Please can anyone suggest what is the issue and whether we need to make any 
configuration changes on the portal server?





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:42 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