simply render the test response
This commit is contained in:
@ -74,9 +74,8 @@ namespace testOauthClient.Controllers
|
||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
|
||||
var content = await client.GetAsync("https://localhost:6001/identity");
|
||||
content.EnsureSuccessStatusCode();
|
||||
var json = await content.Content.ReadAsStreamAsync();
|
||||
var obj = JsonSerializer.Deserialize<JsonElement>(json);
|
||||
return View("UserInfo", obj.ToString());
|
||||
var json = await content.Content.ReadAsStringAsync();
|
||||
return View("UserInfo", json);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user