Browse Source

Identity server fix.

pull/575/head
Sebastian 5 years ago
parent
commit
932f0893ad
  1. 6
      backend/src/Squidex/Areas/IdentityServer/Config/IdentityServerServices.cs

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

@ -63,10 +63,16 @@ namespace Squidex.Areas.IdentityServer.Config
options.UserInteraction.ErrorUrl = "/error/";
})
.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)

Loading…
Cancel
Save