From 4a121a9cb3af6cf69364124d804da011f968c49a Mon Sep 17 00:00:00 2001 From: maliming Date: Thu, 24 Oct 2024 09:06:56 +0800 Subject: [PATCH] Update POST.md --- .../POST.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/Community-Articles/2022-11-14-How-to-add-a-custom-grant-type-in-OpenIddict/POST.md b/docs/en/Community-Articles/2022-11-14-How-to-add-a-custom-grant-type-in-OpenIddict/POST.md index 0401c31898..8f45279b3d 100644 --- a/docs/en/Community-Articles/2022-11-14-How-to-add-a-custom-grant-type-in-OpenIddict/POST.md +++ b/docs/en/Community-Articles/2022-11-14-How-to-add-a-custom-grant-type-in-OpenIddict/POST.md @@ -73,10 +73,10 @@ public class MyTokenExtensionGrant : ITokenExtensionGrant claimsPrincipal.SetResources(await GetResourcesAsync(context, principal.GetScopes())); //abp version < 7.3 - await context.HttpContext.RequestServices.GetRequiredService().SetAsync(principal); + await context.HttpContext.RequestServices.GetRequiredService().SetAsync(claimsPrincipal); //For abp version >= 7.3 - await context.HttpContext.RequestServices.GetRequiredService().HandleAsync(context.Request, principal); + await context.HttpContext.RequestServices.GetRequiredService().HandleAsync(context.Request, claimsPrincipal); return new SignInResult(OpenIddictServerAspNetCoreDefaults.AuthenticationScheme, claimsPrincipal); }