コード例 #1
0
        public async Task <IHttpActionResult> Login(string authorization_code)
        {
            var request = Request;

            if (string.IsNullOrEmpty(authorization_code))
            {
                return(ResponseMessage(new HttpResponseMessage(HttpStatusCode.NoContent)));
            }
            var response = await _api.GetAuthorizationTokens(authorization_code);

            return(Ok(response));
            //var response = await _api.InitiateAuthorizationFlow(authorization_code);
            //var content = await response.Content.ReadAsStringAsync();
            //return Ok(content);
        }