Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Client
- {
- ClientName = "Silicon on behalf of Carbon Client",
- ClientId = "carbon",
- Enabled = true,
- AccessTokenType = AccessTokenType.Jwt,
- Flow = Flows.ResourceOwner,
- ClientSecrets = new List<Secret>
- {
- new Secret("secret".Sha256())
- },
- AllowedScopes = new List<string>
- {
- "api1", "offline_access"
- }
- }
- public void Configuration(IAppBuilder app)
- {
- var factory = new IdentityServerServiceFactory()
- .UseInMemoryUsers(Users.Get())
- .UseInMemoryClients(Clients.Get())
- .UseInMemoryScopes(Scopes.Get());
- var options = new IdentityServerOptions
- {
- SigningCertificate = Certificate.Load(),
- Factory = factory,
- RequireSsl = false
- };
- app.Map("/core", idsrvApp =>
- {
- idsrvApp.UseIdentityServer(options);
- });
- }
Add Comment
Please, Sign In to add comment