Last active
April 26, 2019 17:51
-
-
Save sevaa/15608f2ef7693055b8a68dac7b38ec36 to your computer and use it in GitHub Desktop.
See the OAuth scopes of TFS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#"%> | |
<%@ Import namespace="Microsoft.VisualStudio.Services.DelegatedAuthorization" %> | |
<%@ Import namespace="System.Collections.Generic" %> | |
<%@ Import namespace="System.Linq" %> | |
<html><body> | |
<% | |
AuthorizationScopeDefinitions Defs = AuthorizationScopeDefinitions.Default; | |
foreach(AuthorizationScopeDefinition Sc in Defs.scopes) | |
Response.Write("<b>"+Sc.scope +"</b><br/>\n<ul>\n<li>" + string.Join("</li>\n<li>", Sc.patterns) + "</li>\n</ul>\n"); | |
%> | |
</body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment