Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Commit 9f79cfd

Browse files
author
J Wyman
authored
Merge pull request #567 from jeremyhaubold/tokenscopes
Add Release-related token scopes
2 parents 4cfc85b + 3d761d1 commit 9f79cfd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Microsoft.Vsts.Authentication/VstsTokenScope.cs

+18
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,24 @@ public class VstsTokenScope : TokenScope
104104
/// other top-level organizational artifacts.
105105
/// </summary>
106106
public static readonly VstsTokenScope ProfileRead = new VstsTokenScope("vso.profile");
107+
108+
/// <summary>
109+
/// Grants the ability to read release artifacts, including releases, release definitions
110+
/// and release environment.
111+
/// </summary>
112+
public static readonly VstsTokenScope ReleaseAccess = new VstsTokenScope("vso.release");
113+
114+
/// <summary>
115+
/// Grants the ability to read and update release artifacts, including releases, release
116+
/// definitions and release envrionment, and the ability to queue a new release.
117+
/// </summary>
118+
public static readonly VstsTokenScope ReleaseExecute = new VstsTokenScope("vso.release_execute");
119+
120+
/// <summary>
121+
/// Grants the ability to read, update and delete release artifacts, including releases,
122+
/// release definitions and release envrionment, and the ability to queue and approve a new release.
123+
/// </summary>
124+
public static readonly VstsTokenScope ReleaseManage = new VstsTokenScope("vso.release_manage");
107125

108126
/// <summary>
109127
/// Grants the ability to read service hook subscriptions and metadata, including supported

0 commit comments

Comments
 (0)