-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIdentityServerExtensions.cs
29 lines (25 loc) · 1020 Bytes
/
IdentityServerExtensions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// using IdentityServer4.Models;
// using Microsoft.Extensions.DependencyInjection;
//UNUSED - it's a clientside API anyway...
// public static class IdentityServerBuilderTestExtensions
// {
// public static IIdentityServerBuilder AddTestConfig(this IIdentityServerBuilder builder) =>
// builder.AddInMemoryClients(new[] { new Client
// {
// ClientId = "client1",
// ClientSecrets =
// {
// new Secret("secret1".Sha256())
// },
// AllowedGrantTypes = { GrantType.ClientCredentials },
// AllowedScopes = { "read" }
// }}).AddInMemoryApiResources(new[]
// {
// new ApiResource("embedded")
// {
// Scopes = { "read" },
// Enabled = true
// },
// }).AddInMemoryApiScopes(new[] { new ApiScope("read") })
// .AddDeveloperSigningCredential();
// }