You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Authorize services to work with Azure DevOps
6
+
description: Find out how to use OpenID Connect (OIDC)-based authentication to grant a service access to your Azure DevOps work items, source code, and other resources.
7
7
ms.assetid: 314a28cd-b2ae-41a0-8dfb-330222c1aed0
8
8
ms.author: chcomley
9
9
author: chcomley
10
10
monikerRange: '<= azure-devops'
11
-
ms.date: 07/27/2020
11
+
ms.date: 06/24/2025
12
+
# customer intent: As a developer, I want to use OpenID Connect (OIDC)-based authentication to give an integrated service access to my Azure DevOps resources so that I don't have to give the service my Azure credentials.
12
13
---
13
14
14
15
# Manage authorization of services to access Azure DevOps
[!INCLUDE [Azure DevOps Services | Azure DevOps Server 2022 | Azure DevOps Server 2020](../includes/version-gt-eq-2020.md)]
17
18
18
-
When you use a service that's integrated with Azure DevOps, the industry-standard OAuth 2.0 authorization framework provides safe and secure access to your resources by those other services.
19
-
With OAuth, you grant a service the authorization to access your Azure DevOps resources, such as work items, source code, and build results.
19
+
When you integrate a service with Azure DevOps, you can grant the service access to your Azure DevOps resources, such as work items, source code, and build results.
20
20
21
-
- Authorizations are bound to your credentials, so the service can use the authorization to access your resources in Azure DevOps.
22
-
- Use your Microsoft account or your work account to authorize the service.
23
-
- The service that you authorize never has access to your Azure DevOps credentials.
24
-
- Revoke any authorizations that you've granted to other services.
21
+
Azure DevOps uses OpenID Connect (OIDC)-based authentication to grant the service access to your resources.
22
+
23
+
- Authorizations are bound to your credentials, so the service can use an authorization to access your resources in Azure DevOps.
24
+
- You use your Microsoft account or your work account to authorize the service.
25
+
- The service that you authorize doesn't have access to your Azure DevOps credentials.
25
26
26
27
## Prerequisites
27
28
@@ -31,37 +32,41 @@ With OAuth, you grant a service the authorization to access your Azure DevOps re
31
32
|**Access levels**| At least **Basic** access. |
32
33
|**Permissions**| Member of the [Project Collection Administrators group](../organizations/security/look-up-project-collection-administrators.md). Organization owners are automatically members of this group.|
33
34
35
+
## Authentication frameworks
36
+
37
+
When you build an application on top of Azure DevOps REST APIs, you can use OIDC-based authentication by [registering your application in Microsoft Entra ID](/entra/identity-platform/quickstart-register-app). For more information, see [What is the Microsoft identity platform?](/entra/identity-platform/v2-overview).
38
+
39
+
Some older apps use an implementation of OAuth 2.0 to get access tokens for Azure DevOps resources. Registrations of these Azure DevOps OAuth applications are no longer supported, because Azure DevOps OAuth is slated for deprecation in 2026. For more information, see [No new Azure DevOps OAuth apps beginning April 2025](https://devblogs.microsoft.com/devops/no-new-azure-devops-oauth-apps/).
40
+
34
41
## Authorize a service
35
42
36
-
A typical authorization flow might go like this:
43
+
A typical authorization flow might include the following steps:
37
44
38
-
1. You're using a service that uses Azure DevOps resources, so the service requests authorization.
39
-
1. If you're not already signed in, Azure DevOps prompts you for your credentials.
45
+
1. You use a service that uses Azure DevOps resources, so the service requests authorization.
40
46
41
-

47
+
1. To initiate the authentication process for the service, the registered app opens a Microsoft Entra ID website.
42
48
43
-
2. After you sign in, you get the authorization approval page.
49
+
:::image type="content" source="media/authorize/microsoft-account-selection.png" alt-text="Screenshot of a Microsoft dialog for selecting an account. One account is visible, and an option for adding another account is available.":::
44
50
45
-

51
+
1. After you select an account, the authorization approval page appears.
46
52
47
-
Services can only request full access to all of the resources that are available to you through the REST APIs, so the authorization request might not be specific.
53
+
:::image type="content" source="media/authorize/authorize-azure-devops-permissions.png" alt-text="Screenshot of a Microsoft Permissions requested dialog. An app name, a list of requested permissions, and Cancel and Accept buttons are visible.":::
48
54
49
-
3. Review the request and approve the authorization.
55
+
1. You review the request and approve the authorization.
50
56
51
-
The authorized service uses that authorization to access resources in your Visual Studio account.
57
+
1.The authorized service uses that authorization to access resources in your Azure DevOps organization.
52
58
53
-
To ensure an authorization request is legitimate:
59
+
To ensure an authorization request is legitimate, take the following precautions:
54
60
55
-
- Look for the Azure DevOps branding across the upper portion of the authorization approval page.
56
-
- Ensure the authorization approval page URL begins with ```https://app.vssps.visualstudio.com/```.
57
61
- Pay attention to any HTTPS-related security warnings in your browser.
58
-
-Remember that other services don't ask for your credentials directly. They let you provide them to Azure DevOps through the authorization approval page.
62
+
-Don't give your credentials to other services directly. Enter your credentials only through the authorization approval page in Azure DevOps.
59
63
60
64
## Manage authorizations
61
65
62
-
To see the services that you've authorized to access your account, go to [https://app.vssps.visualstudio.com/Profile/View](https://app.vssps.visualstudio.com/Profile/View)
63
-
and select **Manage authorizations**.
66
+
When you register an app in Microsoft Entra ID, the app can request tokens from the Microsoft identity platform. An authenticated service can then use a token to access specific protected resources. The lifetime of each token is at most 90 minutes. After a token expires, the service's access to the resources is revoked. For more information, see [Token lifetime](/entra/identity-platform/access-tokens#token-lifetime).
67
+
68
+
In contrast, apps that are registered with Azure DevOps OAuth can authorize services to access Azure DevOps resources for longer periods of time. For a list of services that are currently authorized to access your account, go to [https://app.vssps.visualstudio.com/Profile/View](https://app.vssps.visualstudio.com/Profile/View) and select **Manage authorizations**.
64
69
65
-

70
+
:::image type="content" source="media/authorize/authorizations.png" alt-text="Screenshot of the Authorizations dialog. The permissions granted to the Zapier service are visible, and a Revoke link is available.":::
66
71
67
-
You can revoke any authorizations here, so the service can't access your account on your behalf.
72
+
You can use this page to revoke authorizations so that services can't access your account on your behalf.
0 commit comments