1. After opening the ADF app, select Application==>secure==>configure ADF Security
2. In the pop-up box, select ADF authentication, which always next knows to finish.
3. After compiling, the effect is as follows, requiring user to enter user name and password.
Description
1. The user name and password are set in the console of the corresponding server.
Click on "security field" = = "Myrealm"
Select users and Groups to view all users in the LDAP, and also to reset the user's password
2. Get the currently logged-on user from the ADF user
(1). Get the current user in the Java Class (MANAGEDBEAN,AM)
String CurrentUser = adfcontext.getcurrent (). GetSecurityContext (). GetUserName ();
(2). In the bind variable of VO, in the Query tab of VO, click Bind Variables, select expression in value type,
Enter Adf.context.securityContext.userName in value
Can eventually be applied in Vo's query
SELECT employeeseo.employee_id, Employeeseo.first_name, employeeseo.last_name, employeeseo.email, employeeseo.phone_number, Employeeseo.hire_date, employeeseo.job_id, employeeseo.salary, employeeseo.commission_pct, employeeseo.manager_id, employeeseo.department_idfrom EMPLOYEES employeeseo WHERE= : CurrentUser
2. Adding security certifications for ADF applications