2. Adding security certifications for ADF applications

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.