摘要:
1、添加apiresource[下面标红的那一行] public static IEnumerable<ApiResource> GetApis() { var apiClients = SysCore.ConfigHelper.GetSectionApiSites(); List<ApiResou 阅读全文
摘要:
private readonly UserManager<IdentityUser> _userManager; private readonly RoleManager<IdentityRole> _roleManager; public HomeController(IIdentityServe 阅读全文
摘要:
public static IEnumerable<IdentityResource> GetIdentityResources() { return new IdentityResource[] { new IdentityResources.OpenId(), new IdentityResou 阅读全文
摘要:
在colorui的文件夹下有一个main.css,里面有checkbox .uni-checkbox-input::before,把这行注释掉就可以了 阅读全文
摘要:
把下面的地址复制到迅雷里: http://download.microsoft.com/download/0/A/F/0AFB5316-3062-494A-AB78-7FB0D4461357/windows6.1-KB976932-X64.exe 然后把win7的administrator用户解禁 阅读全文
摘要:
1、通过ClientId、ClientSecret来获得token,代码如下: 认证服务器端: ClientId = client.ClientId, ClientName = client.ClientName, AllowedGrantTypes = GrantTypes.ClientCrede 阅读全文
摘要:
添加角色: public string AddRole(string roleName) { if (_roleManager.FindByNameAsync(roleName).Result == null) { var role = new IdentityRole { Name = roleN 阅读全文
摘要:
服务器端配置: Client oneResult = new Client { ClientId = client.ClientId, ClientName = client.ClientName, AllowedGrantTypes = GrantTypes.ResourceOwnerPasswo 阅读全文
摘要:
服务器端配置: Client oneResult = new Client { ClientId = "localHtml", ClientName = "test", AllowedGrantTypes = GrantTypes.ResourceOwnerPassword, ClientSecre 阅读全文
摘要:
1、添加nuget引用 IdentityModel IdentityServer4.AccessTokenValidation Microsoft.AspNetCore.Authentication.Cookies Microsoft.AspNetCore.Authentication.OpenId 阅读全文