Skip to content

Instantly share code, notes, and snippets.

@sevaa
Last active April 26, 2019 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sevaa/15608f2ef7693055b8a68dac7b38ec36 to your computer and use it in GitHub Desktop.
Save sevaa/15608f2ef7693055b8a68dac7b38ec36 to your computer and use it in GitHub Desktop.
See the OAuth scopes of TFS
<%@ 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