Sun Java System Access Manager version 7 2005Q4
Sample
 

Main Page

Liberty Authentication Service Client Sample


1. Introduction

This sample explains about authentication service client which uses a "PLAIN" as authentication mechanism. This sample program first authenticates against an authentication service, extracts the resource offering of a discovery bootstrap. It looks for SAML "Bearer" token credential and issues a discovery query request with SAML assertion included in the request and gets back the response. Note: This sample can be used a LUAD WSC.


2. How to run the sample?

1. The sample is self explanatory and look for the javadocs for more clarity and make changes for your requirements. 2. Compile the sample using gmake. 3. Change the arguments of PlainClient java program with right parameters. The three parameters are n the order as follows i) URL of the authentication service. ii) user id iii) password of the user. 4. Edit Makefile, modify the make target "run" by replacing the values of SERVER_HOST, SERVER_PORT and SERVER_DEPLOY_URI with respective values. 5. Run the sample using "gmake run"


End of Sample