User and Policy Samples: OpenSSO Client SDK
By docteger on Dec 12, 2007
Now that I've gotten through the installation of the OpenSSO Client SDK sample WAR and it's Service Configuration Servlet sample, let's take a look at other Client SDK samples. The next one on the Client SDK - Samples list is the User Profile (Attributes) Sample Servlet. The
UserProfileServlet.javasample code retrieves and displays the profile that corresponds to the user ID entered in the Username text box. I created a user profile
aaaa, entered the ID and password in the text fields and, voila, straight forward and it worked. Note the email address, given name and other information retreived. The Policy Evaluator Client Sample Servlet retrieves from the Policy Service a policy decision that would be passed to a web agent for enforcement. I created a policy using the OpenSSO server for the resource
http://www.sun.com:80with a GET allow and POST deny rule for all authenticated users on Fridays.
PolicyClientServlet.javais the call on the client side that initiates the retrieval of the policy decision. And while you're waiting for my follow-up entries on the SSO and command-line samples for the Client SDK, you might want to check out this video of Nellie McKay and learn how to do the dance that's sweeping the nation - come one everyone, 'do the Zombie'. It'll do you good.