using IdentityServer3.Core.Models; using System.Collections.Generic; namespace IdentityServer.Config { public class Clients { public static List Get() { return new List { new Client { ClientName = "Silicon-only Client", ClientId = "webapi", Enabled = true, AccessTokenType = AccessTokenType.Reference, Flow = Flows.ClientCredentials, ClientSecrets = new List { new Secret("F621F470-9731-4A25-80EF-67A6F7C5F4B8".Sha256()) }, AllowedScopes = new List { "api1", "read", "write" } }, new Client { ClientName = "Silicon on behalf of Carbon Client", ClientId = "carbon", Enabled = true, AccessTokenType = AccessTokenType.Jwt, AccessTokenLifetime = 3600, Flow = Flows.ResourceOwner, ClientSecrets = new List { new Secret("21B5F798-BE55-42BC-8AA8-0025B903DC3B".Sha256()) }, AllowedScopes = new List { "api1" } }, }; } } }