diff --git a/Packages.props b/Packages.props index 1bb67c36..cf6cf343 100644 --- a/Packages.props +++ b/Packages.props @@ -1,7 +1,7 @@ - + @@ -14,7 +14,7 @@ - + diff --git a/samples/Mvc.Server/Controllers/UserinfoController.cs b/samples/Mvc.Server/Controllers/UserinfoController.cs index 24808eed..3aaec6f3 100644 --- a/samples/Mvc.Server/Controllers/UserinfoController.cs +++ b/samples/Mvc.Server/Controllers/UserinfoController.cs @@ -19,10 +19,9 @@ namespace Mvc.Server.Controllers public UserinfoController(UserManager userManager) => _userManager = userManager; - // - // GET: /api/userinfo [Authorize(AuthenticationSchemes = OpenIddictServerAspNetCoreDefaults.AuthenticationScheme)] - [HttpGet("~/connect/userinfo"), HttpPost("~/connect/userinfo"), Produces("application/json")] + [HttpGet("~/connect/userinfo"), HttpPost("~/connect/userinfo")] + [IgnoreAntiforgeryToken, Produces("application/json")] public async Task Userinfo() { var user = await _userManager.GetUserAsync(User);