removing some commented code
This commit is contained in:
@@ -76,10 +76,6 @@ namespace Owin.Security.Providers.OnShape
|
||||
body.Add(new KeyValuePair<string, string>("client_id", Options.AppKey));
|
||||
body.Add(new KeyValuePair<string, string>("client_secret", Options.AppSecret));
|
||||
|
||||
// Request the token
|
||||
//HttpResponseMessage tokenResponse =
|
||||
// await httpClient.PostAsync(TokenEndpoint, new FormUrlEncodedContent(body));
|
||||
|
||||
// Get token
|
||||
var tokenRequest = new HttpRequestMessage(HttpMethod.Post, TokenEndpoint);
|
||||
tokenRequest.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
||||
@@ -94,10 +90,6 @@ namespace Owin.Security.Providers.OnShape
|
||||
dynamic response = JsonConvert.DeserializeObject<dynamic>(text);
|
||||
string accessToken = (string)response.access_token;
|
||||
|
||||
// Get the OnShape user
|
||||
//HttpResponseMessage graphResponse = await httpClient.GetAsync(
|
||||
// UserInfoEndpoint + "?access_token=" + Uri.EscapeDataString(accessToken), Request.CallCancelled);
|
||||
|
||||
string tokenType = (string)response.token_type;
|
||||
|
||||
var userRequest = new HttpRequestMessage(HttpMethod.Get, UserInfoEndpoint);
|
||||
|
||||
Reference in New Issue
Block a user