1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00
documize/vendor/github.com/microsoft/go-mssqldb/auth_windows.go
2024-01-10 14:47:40 -05:00

18 lines
694 B
Go

// +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"
}