New RedirectCallback for custom authentication module allows redirection to an external Web site via the Authentication UI to get a user validated. If the authentication is successful, the user is then redirected back to the original Access Manager server URL. Sample files include:
To implement this feature:
Create a custom authentication module using the sample LoginModuleSample.java.
Load the module into an Access Manager server.
Construct the RedirectCallback in the XML file using the sample LoginModuleSample.xml.
To test the module, use the sample testExtWebSite.jsp file for the external Web site.
Login using this URL:
The user name and password are redirected to the external Web site for validation. If the name and password are valid, the authentication is successful and the user is then redirected back to the original Access Manager server URL.
For example, consider this scenario, where the deployment is using a custom authentication module to access a provisioning/credit card site:
A user invokes the authentication process/login page for the custom authentication module.
The user enters the credentials (user name and password) and submits a request to the custom authentication module.
The custom authentication module redirects the user to an external provisioning/credit card site with the required user information along with the request.
The external provisioning/credit card site checks the user's status and returns the request with either success or failure, which is set as part of the returned request.
The custom authentication module validates the user based on the status returned in Step 4 and returns the corresponding status to the authentication service.
The user authentication completes with either success or failure.