Browse Source

Fix the problem of GetAllowedScopeNames method.

Resolve #3578
pull/3581/head
maliming 7 years ago
parent
commit
2850150c23
  1. 2
      modules/account/src/Volo.Abp.Account.Web.IdentityServer/Pages/Consent.cshtml.cs

2
modules/account/src/Volo.Abp.Account.Web.IdentityServer/Pages/Consent.cshtml.cs

@ -188,7 +188,7 @@ namespace Volo.Abp.Account.Web.Pages
public List<string> GetAllowedScopeNames() public List<string> GetAllowedScopeNames()
{ {
var identityScopes = IdentityScopes ?? new List<ConsentModel.ScopeViewModel>(); var identityScopes = IdentityScopes ?? new List<ConsentModel.ScopeViewModel>();
var apiScopes = IdentityScopes ?? new List<ConsentModel.ScopeViewModel>(); var apiScopes = ApiScopes ?? new List<ConsentModel.ScopeViewModel>();
return identityScopes.Union(apiScopes).Where(s => s.Checked).Select(s => s.Name).ToList(); return identityScopes.Union(apiScopes).Where(s => s.Checked).Select(s => s.Name).ToList();
} }
} }

Loading…
Cancel
Save