From 10b5ed1977b66fbbe60a68cd09bbad20bb6a4ce4 Mon Sep 17 00:00:00 2001 From: maliming Date: Sat, 2 May 2026 15:39:44 +0800 Subject: [PATCH] Refine XML doc for password/token_exchange default scopes options --- .../Volo/Abp/OpenIddict/AbpOpenIddictOptions.cs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/AbpOpenIddictOptions.cs b/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/AbpOpenIddictOptions.cs index 9675d7ed6c..f0c2415fb2 100644 --- a/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/AbpOpenIddictOptions.cs +++ b/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/AbpOpenIddictOptions.cs @@ -35,17 +35,22 @@ public class AbpOpenIddictAspNetCoreOptions public bool UseDefaultScopesForClientCredentials { get; set; } /// - /// When set to true, the access token issued for the password grant - /// automatically includes the scopes configured on the client application (permissions - /// prefixed with oi_scp:) when the client does not explicitly request any scope. + /// When set to true, the token response for the password grant automatically + /// grants the scopes configured on the client application (permissions prefixed with + /// oi_scp:) when the client does not explicitly request any scope. If the configured + /// scopes include openid/profile/email/roles, the corresponding + /// id_token and claim destinations are affected as well. /// Default: false. /// public bool UseDefaultScopesForPassword { get; set; } /// - /// When set to true, the access token issued for the urn:ietf:params:oauth:grant-type:token-exchange - /// grant automatically includes the scopes configured on the client application (permissions - /// prefixed with oi_scp:) when the client does not explicitly request any scope. + /// When set to true, the token response for the + /// urn:ietf:params:oauth:grant-type:token-exchange grant automatically grants the + /// scopes configured on the client application (permissions prefixed with oi_scp:) + /// when the client does not explicitly request any scope. If the configured scopes include + /// openid/profile/email/roles, the corresponding id_token and + /// claim destinations are affected as well. /// Default: false. /// public bool UseDefaultScopesForTokenExchange { get; set; }