User authentication example

A user authentication request is triggered by policy rules and exceptions, but not when users or groups are specified in a policy's Applies to setting. When users have been successfully authenticated by a policy rule or exception, the service rechecks the policy list, and may jump to an alternative, higher-priority policy, if that policy now matches the identified user. This example demonstrates how policy rule authentication and policy rematching can work in practice, using a hypothetical example.

In the following example, a previously unidentified user at Site B, who is a member of the Marketing user group, tries to access a website that is defined in a user-based web exception. The following diagrams demonstrate an example of the policy matching and authentication flow for the request.

Figure: The request matches a policy exception that requires user identity

1
An unidentified user makes a request to facebook.com. The service checks through the policy list to find a policy match.
2
Because the user has not yet been identified, the request does not match policy 1, which is a user-based policy applied to 2 user groups, including the Marketing group.
3
The request does not match policy 2, because the user is not at Site A.
4
The request matches policy 3, because it applies to Site B.
5
In the web categories stage of policy 3, the Social Networking web category is blocked, but the request to facebook.com matches a Continue inspection exception. This exception is applied to All Users, which means that any user at Site B who tries to access facebook.com must be authenticated. This exception requires user identity in order to determine whether the user can access the web resource.
6
The identity-based exception triggers an authentication request, and the user is successfully authenticated.

Figure: The identified user is rematched to a user-based policy

7
Because the user's identity is now known, the service rechecks the request to determine if it now matches a different, identity-based policy.
8
Policy 1 is a user-based policy that applies to the Marketing group. Because policy 1 has a higher priority in the policy list, the request now matches this policy.
9
The policy rules in policy 1 are applied. In this policy, the Social Networking web category is allowed, and the user can access the requested resource.
Note: If there was not an alternative, higher-priority user-based policy that matched the user, the user request would proceed using the exception configured in policy 3. You can apply user-based policies (as shown in this example) in order to apply specific policy rules to identified users, or alternatively you can apply identity-based exceptions within site-based policies, as required.