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);