Browse Source

Claims fixes.

pull/575/head
Sebastian 5 years ago
parent
commit
02f7e283f0
  1. 11
      backend/src/Squidex/Areas/IdentityServer/Config/IdentityServerServices.cs
  2. 2
      frontend/app/shared/components/table-header.component.html

11
backend/src/Squidex/Areas/IdentityServer/Config/IdentityServerServices.cs

@ -37,9 +37,6 @@ namespace Squidex.Areas.IdentityServer.Config
services.AddDataProtection().SetApplicationName("Squidex");
services.AddSingleton(GetApiResources());
services.AddSingleton(GetIdentityResources());
services.AddIdentity<IdentityUser, IdentityRole>()
.AddDefaultTokenProviders();
@ -64,18 +61,12 @@ namespace Squidex.Areas.IdentityServer.Config
})
.AddAspNetIdentity<IdentityUser>()
.AddInMemoryApiScopes(GetApiScopes())
.AddInMemoryApiResources(GetApiResources())
.AddInMemoryIdentityResources(GetIdentityResources());
}
private static IEnumerable<ApiScope> GetApiScopes()
{
yield return new ApiScope(Constants.ApiScope);
}
private static IEnumerable<ApiResource> GetApiResources()
{
yield return new ApiResource(Constants.ApiScope)
yield return new ApiScope(Constants.ApiScope)
{
UserClaims = new List<string>
{

2
frontend/app/shared/components/table-header.component.html

@ -3,7 +3,7 @@
<i *ngIf="order === 'ascending'" class="icon-caret-down"></i>
<i *ngIf="order === 'descending'" class="icon-caret-up"></i>
{{text}}
{{text | sqxTranslate}}
</span>
</a>

Loading…
Cancel
Save