new Client
{
ClientId = "mvc",
ClientSecrets = { new Secret("secret".Sha256()) },
AllowedGrantTypes = GrantTypes.Code,
RequireConsent = true, //是否显示授权提示界面
RedirectUris = {"http://localhost:5000/signin-oidc"},
PostLogoutRedirectUris = { "https://localhost:5000/signout-callback-oidc" },
AllowedScopes = new List<string>
{
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile
}
},
友情链接:
全部评论