From ed7d9a1c76058ff3b9dec5b80c159341616f7232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Thu, 17 Dec 2020 16:17:24 +0100 Subject: [PATCH] Update UserinfoController to handle POST userinfo requests --- samples/Mvc.Server/Controllers/UserinfoController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/Mvc.Server/Controllers/UserinfoController.cs b/samples/Mvc.Server/Controllers/UserinfoController.cs index 1035c38b..24808eed 100644 --- a/samples/Mvc.Server/Controllers/UserinfoController.cs +++ b/samples/Mvc.Server/Controllers/UserinfoController.cs @@ -22,7 +22,7 @@ namespace Mvc.Server.Controllers // // GET: /api/userinfo [Authorize(AuthenticationSchemes = OpenIddictServerAspNetCoreDefaults.AuthenticationScheme)] - [HttpGet("~/connect/userinfo"), Produces("application/json")] + [HttpGet("~/connect/userinfo"), HttpPost("~/connect/userinfo"), Produces("application/json")] public async Task Userinfo() { var user = await _userManager.GetUserAsync(User);