摘要:
添加角色: 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 阅读全文