forked from microsoft/go-mssqldb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth_windows.go
More file actions
19 lines (15 loc) · 713 Bytes
/
auth_windows.go
File metadata and controls
19 lines (15 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//go:build windows
// +build windows
package mssql
import (
"github.com/microsoft/go-mssqldb/integratedauth"
// nolint importing the ntlm package causes it to be registered as an available authentication provider
_ "github.com/microsoft/go-mssqldb/integratedauth/ntlm"
// nolint importing the winsspi package causes it to be registered as an available authentication provider
_ "github.com/microsoft/go-mssqldb/integratedauth/winsspi"
)
func init() {
// we set the default authentication provider name here, rather than within each imported package,
// to force a known default. Go will order execution of init() calls but it is better to be explicit.
integratedauth.DefaultProviderName = "winsspi"
}