SSO Sample: OpenSSO Client SDK

The Single Sign-On Token Verification Sample validates an SSOToken and then displays the user profile associated with it. This sample is accesible from the Client SDK-Samples page.

You must log in to the OpenSSO console in order to run this sample. Once you are logged in, click Click and the user profile associated with the SSOToken you received after authentication is displayed. I logged in as the default administrator, amadmin, and received the following profile:

SSOToken host name: 127.0.0.1
SSOToken Principal name: id=amadmin,ou=user,dc=opensso,dc=java,dc=net
Authentication type used: DataStore
IPAddress of the host: 127.0.0.1
SSO Token validation test succeeded
The token id is AQIC5wM2LY4SfcxaVucZ3AN669OG0Nzq+dA52vuEuaMIQhU=@AAJTSQACMDE=#
Property: Company: Sun Microsystems
Property: Country: USA
User Attributes: {inetUserStatus=[Active], dn=[uid=amAdmin,ou=people,dc=opensso,dc=java,dc=net], roles=[Top-level Admin Role]}

NOTE: One caveat I encountered was that the sample will not work if the machine name and host don't match in the OpenSSO server and the sample SDK WARs. I had installed OpenSSO on my machine, develop2.orange.sunlab.com. The client sample WAR was automatically deployed on localhost - the same machine. But the sample did not work until I manually changed localhost to develop2.orange.sunlab.com in the browser location window.

The code included with this sample is SSOTokenSampleServlet.java and SampleTokenListener.java. These files serve as a basis for using the SSO API, demonstrating how you can create an SSO Token, call various methods from the token, set up an event listener and get notified on event changes.
Comments:

I tried the link for the SSO Token verification sample (http://devapp:60770/fam-client-jdk15/SSOTokenSampleServlet)
and got a completely blank page. What am I doing wrong?

Posted by RC on January 03, 2008 at 10:19 PM PST #

Just seen the servers logs:

servlet SSOTokenSampleServlet threw exception
java.lang.NoClassDefFoundError at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.java:83)
etc. etc.

Posted by RC on January 03, 2008 at 10:25 PM PST #

If OpenSSO is configured correctly (re: your previous comment) and you are logged into the OpenSSO console and you are still getting this message I would send this question to users@opensso.dev.java.net. Copy all of your server.log there so everyone can check it out.

Posted by DocTeger on January 03, 2008 at 10:54 PM PST #

Post a Comment:
Comments are closed for this entry.
About

docteger

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today