Joao,
Despite their (unfortunately) similar names, these are two independent things.
Secure Access Control-->Policy: Access Control-->Create Policy is where you create what I call a "Context-based Access Policy".
Secure Federation --> Global Settings: Access Policies --> Add is where you create what I would call a "Federation Access Policy"
A "Context-based Access policy" allows fine-grained authorization to be applied to resources (URLs) being accessed via the Reverse Proxy. These policies are created with a policy editor in the UI. They are (under the covers) implemented in XACML. These policies have access to the user credential, information extracted from the HTTP request, and can call out for additional context using "Policy Information Points". I covered these policies at the Master Skills University event (as part of the presentation on risk-based access). Also covered here:
https://www.securitylearningacademy.com/course/view.php?id=5018A "Federation Access policy" allows an access decision to be made during the Identity Provider processing of a SAML 2.0 or OIDC flow. In addition to the authenticated user information, the policy has access to information about the federation definition and the federation request (including things like requested authentication level from partner). These policies are written in JavaScript. There is a section on Access Policies in this course on SLA:
https://www.securitylearningacademy.com/course/view.php?id=3307I hope this helps,
Jon.
------------------------------
Jon Harry
Consulting IT Security Specialist
IBM
------------------------------