Skip to content

Instantly share code, notes, and snippets.

@SteveSyfuhs
Last active August 29, 2015 13:56
Show Gist options
  • Save SteveSyfuhs/8923202 to your computer and use it in GitHub Desktop.
Save SteveSyfuhs/8923202 to your computer and use it in GitHub Desktop.
protected override Scope GetScope(ClaimsPrincipal principal, RequestSecurityToken request)
{
bool appRequiresJwt = true;
if (appRequiresJwt)
{
request.TokenType = "urn:ietf:params:oauth:token-type:jwt";
}
return WhateverYouDoToGenerateScope(principal, request);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment