mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Add support for Login and User management (#21981)
* initial commit * leave only march release objects * clean up * login dialog * localize and use background operation * code cleanup * remove tab * support server role in login * remove canEditName * add user support * comments and bug fixes * remove hasDBAccess for now * refactoring * fix error * user dialog UI * telemetry, error handling and refactoring * Fix references to dialogInfo (#21914) * update telemetry * Bump STS and use actual object management service * add preview and handle no-change scenario * fix merge issue --------- Co-authored-by: Karl Burtram <karlb@microsoft.com>
This commit is contained in:
62
extensions/mssql/src/objectManagement/constants.ts
Normal file
62
extensions/mssql/src/objectManagement/constants.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* The object types in object explorer's node context.
|
||||
*/
|
||||
export enum NodeType {
|
||||
Login = 'ServerLevelLogin',
|
||||
User = 'User'
|
||||
}
|
||||
|
||||
export const PublicServerRoleName = 'public';
|
||||
|
||||
/**
|
||||
* User types.
|
||||
*/
|
||||
export enum UserType {
|
||||
/**
|
||||
* User with a server level login.
|
||||
*/
|
||||
WithLogin = 'WithLogin',
|
||||
/**
|
||||
* User based on a Windows user/group that has no login, but can connect to the Database Engine through membership in a Windows group.
|
||||
*/
|
||||
WithWindowsGroupLogin = 'WithWindowsGroupLogin',
|
||||
/**
|
||||
* Contained user, authentication is done within the database.
|
||||
*/
|
||||
Contained = 'Contained',
|
||||
/**
|
||||
* User that cannot authenticate.
|
||||
*/
|
||||
NoConnectAccess = 'NoConnectAccess'
|
||||
}
|
||||
|
||||
/**
|
||||
* The authentication types.
|
||||
*/
|
||||
export enum AuthenticationType {
|
||||
Windows = 'Windows',
|
||||
Sql = 'Sql',
|
||||
AzureActiveDirectory = 'AAD'
|
||||
}
|
||||
|
||||
export const CreateUserDocUrl = 'https://learn.microsoft.com/en-us/sql/t-sql/statements/create-user-transact-sql';
|
||||
export const AlterUserDocUrl = 'https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-user-transact-sql';
|
||||
export const CreateLoginDocUrl = 'https://learn.microsoft.com/en-us/sql/t-sql/statements/create-login-transact-sql';
|
||||
export const AlterLoginDocUrl = 'https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-login-transact-sql';
|
||||
|
||||
export enum TelemetryActions {
|
||||
CreateObject = 'CreateObject',
|
||||
UpdateObject = 'UpdateObject',
|
||||
DeleteObject = 'DeleteObject',
|
||||
OpenNewObjectDialog = 'OpenNewObjectDialog',
|
||||
OpenPropertiesDialog = 'OpenPropertiesDialog'
|
||||
}
|
||||
|
||||
export enum TelemetryViews {
|
||||
ObjectManagement = 'ObjectManagement'
|
||||
}
|
||||
Reference in New Issue
Block a user