From b1539f3a7b1e8a4c11b7d79301a7ca46e9cc5607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Mon, 21 Dec 2020 17:42:38 +0100 Subject: [PATCH] Bump AngleSharp and Portable.BouncyCastle --- Packages.props | 4 ++-- samples/Mvc.Server/Controllers/UserinfoController.cs | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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);