GitPermissionsUtil Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static class GitPermissionsUtil
type GitPermissionsUtil = class
Public Class GitPermissionsUtil
- Inheritance
-
GitPermissionsUtil
Methods
| GetProjectIdFromToken(String) |
Get project Guid from a canonicalized token. <param name="securityToken"> a Git Repositories Security Token that is already canonicalized by CalculateSecurable(String, Guid, String) in the form: repoV2/f7aa0cd2-5bb1-4fc7-87fc-3ca29a266aad/622eb04c-9538-4e64-bb8e-4287eb20436d/refs/heads/6d0061007300740065007200/</param> |
| GetRefNameFromToken(String) |
Get readble ref name from a canonicalized token. e.g.: return "refs/heads/master" from "repoV2/f7aa0cd2-5bb1-4fc7-87fc-3ca29a266aad/622eb04c-9538-4e64-bb8e-4287eb20436d/refs/heads/6d0061007300740065007200" <param name="securityToken"> a Git Repositories Security Token that is already canonicalized</param> |
| GetRepoIdFromToken(String) |
Get repo Guid from a canonicalized token. <param name="securityToken"> a Git Repositories Security Token that is already canonicalized by CalculateSecurable(String, Guid, String) in the form: repoV2/f7aa0cd2-5bb1-4fc7-87fc-3ca29a266aad/622eb04c-9538-4e64-bb8e-4287eb20436d/refs/heads/6d0061007300740065007200/</param> |
| GetTokenScope(String) |
Infers the GitPermissionScope from how many sub-tokens in the provided security token. <param name="securityToken"> a Git Repositories Security Token that is already canonicalized by CalculateSecurable(String, Guid, String) in the form: repoV2/f7aa0cd2-5bb1-4fc7-87fc-3ca29a266aad/622eb04c-9538-4e64-bb8e-4287eb20436d/refs/heads/6d0061007300740065007200/</param> |