Skip to content

Instantly share code, notes, and snippets.

@sevaa
Created April 27, 2018 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sevaa/da5f287051c2680c1e133886f15d895c to your computer and use it in GitHub Desktop.
Save sevaa/da5f287051c2680c1e133886f15d895c to your computer and use it in GitHub Desktop.
This page retrieves the scopes for a TFS issued OAuth token
<%@ Page Language="C#"%>
<%@ Import namespace="System.IdentityModel.Tokens" %>
<%
Response.ContentType = "text/plain";
string Token;
if((Token = Request.QueryString.Get("Token")) != null)
{
Response.Write(new JwtSecurityToken(Token).Payload["scp"]);
}
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment