From 4f07b15462a19226834b9559b17ac60a057e0266 Mon Sep 17 00:00:00 2001 From: Dav-id Date: Mon, 27 Nov 2023 16:47:25 +0000 Subject: [PATCH] refactor: update RoleClaimType to match the roles claim (#7) --- .../extensions/AuthenticationBuilderExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logto.AspNetCore.Authentication/extensions/AuthenticationBuilderExtensions.cs b/src/Logto.AspNetCore.Authentication/extensions/AuthenticationBuilderExtensions.cs index cc3f76e..b646691 100644 --- a/src/Logto.AspNetCore.Authentication/extensions/AuthenticationBuilderExtensions.cs +++ b/src/Logto.AspNetCore.Authentication/extensions/AuthenticationBuilderExtensions.cs @@ -113,7 +113,7 @@ private static void ConfigureOpenIdConnectOptions(OpenIdConnectOptions options, options.TokenValidationParameters = new TokenValidationParameters { NameClaimType = "name", - RoleClaimType = "role", + RoleClaimType = "roles", ValidateAudience = true, ValidAudience = logtoOptions.AppId, ValidateIssuer = true,