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

Add support for AzureAD auth (#152) #162

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions autoload/db/adapter/sqlserver.vim
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function! db#adapter#sqlserver#interactive(url) abort
\ (empty(encrypt) ? [] : ['-N'] + (encrypt ==# '1' ? [] : [url.params.encrypt])) +
\ s:boolean_param_flag(url, 'trustServerCertificate', '-C') +
\ (has_key(url, 'user') ? [] : ['-E']) +
\ (has_key(url.params, 'authentication') ? ['--authentication-method', url.params.authentication] : []) +
\ db#url#as_argv(url, '', '', '', '-U ', '', '-d ')
endfunction

Expand Down
5 changes: 3 additions & 2 deletions doc/dadbod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ SQL Server ~
sqlserver://[<user>[:<password>]@][<host>][:<port>]/[<database>]
sqlserver://[<host>[:<port>]][;user=<user>][;...]
<
Supported query parameters are `secure` and `trustServerCertificate`, which
correspond to connection properties of the same name.
Supported query parameters are `authentication`, `secure` and `trustServerCertificate`,
which correspond to connection properties of the same name. The `authentication`
property is only supported when using `go-sqlcmd`.

To set the `integratedSecurity` connection property and use a trusted
connection, omit the user and password.
Expand Down