Time for action – creating a login page
A login page can be created by following these steps:
Right-click on EmpDirectoryApplication and select Configure ADF Security under Secure.
In the Configure ADF Security wizard, select ADF Authentication and Authorization.
Under Authentication Type , select Form-Based Authentication and check Generate Default Pages.
As you can see, Login Page will be named
login.html
and Error Page is namederror.html
. These files will be created at the root of the web application.Continue until you click the Finish button as explained before.
Now when you run your
index.jspx
page, you will be redirected to thelogin.html
page. Provide the correct password to enter into the application, otherwise you will be redirected to theerror.html
page.With HTTP based Authentication selected, the login prompt cannot be asked for unless you restart the server. In Form based Authentication, the user is redirected to the login page if the user's session expires.