Credential Authentication Samples

In this section:

This section describes sample JSPs that show how to use the ReportCaster authentication functionality in the API. For the Java API, there are three out of the box implementations of the Credential interface: PasswordCredential, SecurityTokenCredential, and WebAuthenticateCredential.


Top of page

x
FirstPage.jsp

This sample shows how the WebAuthenticateCredential class and the PasswordCredential class can be used together for single sign on purposes. It tests to see if a remote user exists on the web server. If it does not, it prompts for a user name and password. Upon authentication, PasswordCredential will generate a cookie, which will allow the second page to function.


Top of page

x
NextPage.jsp

This page shows authentication through cookies using the SecurityTokenCredential class.


WebFOCUS