Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication with Entra ID? #24

Open
tsoernes opened this issue Aug 20, 2024 · 1 comment
Open

Authentication with Entra ID? #24

tsoernes opened this issue Aug 20, 2024 · 1 comment

Comments

@tsoernes
Copy link

Is it possible to connect to a database and authenticate with Microsoft Entra ID?

@Fuco1
Copy link
Collaborator

Fuco1 commented Aug 24, 2024

I wrote a small function for myself to do that. I would guess you can also use other types of logins, change AUTHENTICATION appropriately.

(defun my-lsp-mssql-connect ()
      (interactive)
      (lsp)
      (lsp-mssql-connect
       (list
        :server (swb--get-default-host)
        :connectionString
        (format "SERVER=%s;DATABASE=%s;UID=%s;PWD=%s;AUTHENTICATION=ActiveDirectoryServicePrincipal"
               ;;; somehow fill these values in, `swb` is my own personal internal functions to get credentials.
                (swb--get-default-host)
                (swb--get-default-database)
                (swb--get-default-user)
                (swb--get-default-password)))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants