User creation handler clean-ups (#1867)

* Wire up init user message

* Send schema list

* Load database roles

* Add create user

* Add a delete user handler and format service file
This commit is contained in:
Karl Burtram
2023-02-17 08:38:17 -08:00
committed by GitHub
parent 74dd15c868
commit 675427c690
9 changed files with 487 additions and 373 deletions

View File

@@ -51,16 +51,12 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.Security
{
return new UserInfo()
{
Type = DatabaseUserType.UserWithLogin,
UserName = "TestUserName_" + new Random().NextInt64(10000000,90000000).ToString(),
Type = DatabaseUserType.WithLogin,
Name = "TestUserName_" + new Random().NextInt64(10000000,90000000).ToString(),
LoginName = loginName,
Password = "placeholder",
DefaultSchema = "dbo",
OwnedSchemas = new string[] { "dbo" },
isEnabled = false,
isAAD = false,
ExtendedProperties = null,
SecurablePermissions = null
OwnedSchemas = new string[] { "dbo" }
};
}