mirror of
https://github.com/documize/community.git
synced 2025-07-21 06:09:42 +02:00
Bump version to 5.11.0
This commit is contained in:
parent
a32510b8e6
commit
510e1bd0bd
370 changed files with 18825 additions and 5454 deletions
25
vendor/github.com/microsoft/go-mssqldb/integratedauth/integratedauthenticator.go
generated
vendored
Normal file
25
vendor/github.com/microsoft/go-mssqldb/integratedauth/integratedauthenticator.go
generated
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
package integratedauth
|
||||
|
||||
import (
|
||||
"github.com/microsoft/go-mssqldb/msdsn"
|
||||
)
|
||||
|
||||
// Provider returns an SSPI compatible authentication provider
|
||||
type Provider interface {
|
||||
// GetIntegratedAuthenticator is responsible for returning an instance of the required IntegratedAuthenticator interface
|
||||
GetIntegratedAuthenticator(config msdsn.Config) (IntegratedAuthenticator, error)
|
||||
}
|
||||
|
||||
// IntegratedAuthenticator is the interface for SSPI Login Authentication providers
|
||||
type IntegratedAuthenticator interface {
|
||||
InitialBytes() ([]byte, error)
|
||||
NextBytes([]byte) ([]byte, error)
|
||||
Free()
|
||||
}
|
||||
|
||||
// ProviderFunc is an adapter to convert a GetIntegratedAuthenticator func into a Provider
|
||||
type ProviderFunc func(config msdsn.Config) (IntegratedAuthenticator, error)
|
||||
|
||||
func (f ProviderFunc) GetIntegratedAuthenticator(config msdsn.Config) (IntegratedAuthenticator, error) {
|
||||
return f(config)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue