Created
April 27, 2018 15:51
-
-
Save sevaa/da5f287051c2680c1e133886f15d895c to your computer and use it in GitHub Desktop.
This page retrieves the scopes for a TFS issued OAuth token
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="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