From eac3ba64f92238ba466b89d45349a6da99dfef50 Mon Sep 17 00:00:00 2001 From: Tathagata Chakraborty Date: Mon, 14 Sep 2015 15:46:08 +0530 Subject: [PATCH] removing some commented code --- .../OnShape/OnShapeAuthenticationHandler.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Owin.Security.Providers/OnShape/OnShapeAuthenticationHandler.cs b/Owin.Security.Providers/OnShape/OnShapeAuthenticationHandler.cs index 22c0473..85a65fa 100644 --- a/Owin.Security.Providers/OnShape/OnShapeAuthenticationHandler.cs +++ b/Owin.Security.Providers/OnShape/OnShapeAuthenticationHandler.cs @@ -76,10 +76,6 @@ namespace Owin.Security.Providers.OnShape body.Add(new KeyValuePair("client_id", Options.AppKey)); body.Add(new KeyValuePair("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(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);