using Duende.IdentityServer; using Duende.IdentityServer.Models; namespace IdentityServer.Realization { public static class SimpleConfig { public static IEnumerable IdentityResources => new List { new IdentityResources.OpenId(), new IdentityResources.Profile(), }; public static IEnumerable ApiScopes => new List { new ApiScope("api1", "My API") }; public static IEnumerable Clients => new List { new Client { ClientId = "interactive", ClientSecrets = { new Secret("49C1A7E1-0C79-4A89-A3D6-A37998FB86B0".Sha256()) }, AllowedGrantTypes = GrantTypes.Code, //RequireConsent = false,//ͬÒâÒ³Ãæ RedirectUris = { "https://localhost:44300/signin-oidc" }, FrontChannelLogoutUri = "https://localhost:44300/signout-oidc", PostLogoutRedirectUris = { "https://localhost:44300/signout-callback-oidc" }, AllowOfflineAccess = true,//Ë¢ÐÂtoken AllowedScopes = { "openid", "profile", "api1" } } }; } }