Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

34 lines (31 sloc) 1.04 KB
using System.Collections.Generic;
using IdentityServer4.Models;
namespace SimplCommerce.WebHost.IdentityServer
{
public static class IdentityServerConfig
{
public static IEnumerable<IdentityResource> Ids =>
new IdentityResource[]
{
new IdentityResources.OpenId(),
new IdentityResources.Profile()
};
public static IEnumerable<ApiResource> Apis =>
new ApiResource[]
{
new ApiResource("api.simplcommerce", "SimplCommerce API")
};
public static IEnumerable<Client> Clients =>
new Client[]
{
new Client
{
ClientId = "ro.client",
ClientName = "Resource Owner Client",
AllowedGrantTypes = GrantTypes.ResourceOwnerPassword,
ClientSecrets = { new Secret("secret".Sha256()) },
AllowedScopes = { "api.simplcommerce" }
}
};
}
}
You can’t perform that action at this time.