Skip to content

Instantly share code, notes, and snippets.

@jazlalli
Last active December 11, 2015 12:58
Show Gist options
  • Save jazlalli/4604488 to your computer and use it in GitHub Desktop.
Save jazlalli/4604488 to your computer and use it in GitHub Desktop.
POSTing the JWT
var post = new Dictionary<string, string>
{
{"grant_type", "urn:ietf:params:oauth:grant-type:jwt-bearer"},
{"assertion", jwt }
};
var response = _httpClientProvider.PostAsync(URI, _httpContentProvider.GetFormUrlEncodedContent(post));
var accessToken = _jsonProvider.Deserialize<AccessToken>(response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment