Form-based authentication
Form-based authentication is similar to a web application in which the users have to fill out a login form in order to access a secured or protected resource. Worklight provides a similar authentication mechanism in which the server returns the HTML of a login form whenever an application tries to access a protected resource.
The Worklight application that uses form-based authentication must use a login module to validate the received credentials.
Security realm
Declare the security realm with the name myFormBasedAppRealm
as follows:
<realm name="myFormBasedAppRealm" loginModule="myFormBasedAppLoginModule"> <className>com.worklight.core.auth.ext.FormBasedAuthenticator</className> </realm>
The login module
Now define the login ...
Get IBM Worklight Mobile Application Development Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.