|
| 1 | +--- |
| 2 | +title: Continuous access evaluation in Azure AD |
| 3 | +description: Responding to changes in user state faster with continuous access evaluation in Azure AD |
| 4 | + |
| 5 | +services: active-directory |
| 6 | +ms.service: active-directory |
| 7 | +ms.subservice: conditional-access |
| 8 | +ms.topic: conceptual |
| 9 | +ms.date: 07/18/2022 |
| 10 | + |
| 11 | +ms.author: joflore |
| 12 | +author: MicrosoftGuyJFlo |
| 13 | +manager: karenhoran |
| 14 | +ms.reviewer: vmahtani |
| 15 | + |
| 16 | +ms.collection: M365-identity-device-management |
| 17 | +--- |
| 18 | +# Continuous access evaluation for service principals (preview) |
| 19 | + |
| 20 | +Continuous Access Evaluation (CAE) for service principals allows [What are workload identities?](../develop/workload-identities-overview.md) service accounts to gain significant security benefits by providing real-time enforcement of Conditional Access location and risk policies along with instant enforcement of token revocation events. |
| 21 | + |
| 22 | +## Scenarios |
| 23 | + |
| 24 | +CAE for Service Principals public preview scope includes the following: |
| 25 | + |
| 26 | +- Instant enforcement of key revocation events – service principal disable, service principal delete and High service principal risk detected by Azure AD Identity Protection |
| 27 | +- Enforcement of location based Conditional Access policies |
| 28 | + |
| 29 | +The only resource provider enabled as part of this preview is Microsoft Graph only for third party (3P) clients |
| 30 | + |
| 31 | +Opt-in for CAE+SP |
| 32 | + |
| 33 | +[Claims challenges, claims requests, and client capabilities](../develop/claims-challenge.md) |
| 34 | +The opt-in for CAE+SP is when API implementer requests xms_cc as an optional claim. The xms_cc claim with a value of "cp1" in the access token is the authoritative way to identify a client application is capable of handling a claims challenge. Your Microsoft-sourced authentication SDK may include this opt-in parameter. (for example, Azure SDK) |
| 35 | + |
| 36 | +Opt-out for CAE+SP |
| 37 | + |
| 38 | +In order to opt out, don't send xms_cc claim with a value of "cp1"; if you're a premium tenant, you could also create Conditional Access policy to disable CAE for SP as an immediate stop-gap measure |
| 39 | +Register an application with Azure AD, create a service principal and create a Conditional Access policy |
| 40 | +Refer this link to register an application with Azure AD and create a service principal. |
| 41 | +Refer this link to create a Conditional Access policy. |
| 42 | +To create a policy that corresponds to service principals, under Assignments select Workload Identities. Configure the remainder of the policy controls per your organizational requirements. Location ranges can be configured within the Conditions tab. Select Create once configured to create your Conditional Access policy. |
| 43 | +a. CAE is enabled in Conditional Access policies by default. |
| 44 | +b. If you want to disable CAE, navigate to your policy and disable CAE as found in the Session tab. |
| 45 | + |
| 46 | +Sign In Logs Verification |
| 47 | + |
| 48 | +When a client’s access to a resource is blocked due to CAE being triggered, the client’s session will be revoked and the client will need to reauthenticate. This behavior can be verified in the sign-in logs. |
| 49 | + |
| 50 | +The following steps detail how an admin can verify sign in activity in the sign-in logs: |
| 51 | + |
| 52 | +1. Sign into the Azure portal as a Conditional Access Administrator, Security Administrator, or Global Administrator. |
| 53 | +1. Browse to Azure Active Directory > Sign in logs > Service Principal Sign-ins Admins can use filters to ease the debugging process. |
| 54 | +1. Double select on an entry to see activity details. The field Continuous access evaluation will indicate whether a CAE token was issued in a particular sign-in attempt. |
| 55 | + |
| 56 | +Related Links |
| 57 | + |
| 58 | +Developers Guide for CAE for Service Principals |
| 59 | +CAE documentation |
| 60 | +Service Principal Portal Operational Guide |
| 61 | +[How to use Continuous Access Evaluation enabled APIs in your applications](../develop/app-resilience-continuous-access-evaluation.md) |
0 commit comments