/
dgrigorev
/
IdentityServerQuickstart
Обзор
Документация
Войти
/
dgrigorev
/
IdentityServerQuickstart
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Quickstart/Config.cs
32 строки
874 B
dagrigorev
changed readme
24 авг 2021, 22:48
24 авг 2021, 22:48
8f3ada1
Код
Авторство
О чём код?
// Copyright (c) Duende Software. All rights reserved. // See LICENSE in the project root for license information. using Duende.IdentityServer.Models; using System.Collections.Generic; namespace Quickstart { public static class Config { public static IEnumerable<ApiScope> ApiScopes => new List<ApiScope>() { new ApiScope("api1", "My API") }; public static IEnumerable<Client> Clients => new List<Client> { new Client { ClientId = "client", AllowedGrantTypes = GrantTypes.ClientCredentials, ClientSecrets = { new Secret("secret".Sha256()) }, AllowedScopes = { "api1" } } }; } }