Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func SetIntegratedAuthenticationProvider ¶
SetIntegratedAuthenticationProvider stores a named authentication provider. It should be called before any connections are created.
Types ¶
type IntegratedAuthenticator ¶
type IntegratedAuthenticator interface { InitialBytes() ([]byte, error) NextBytes([]byte) ([]byte, error) Free() }
IntegratedAuthenticator is the interface for SSPI Login Authentication providers
func GetIntegratedAuthenticator ¶
func GetIntegratedAuthenticator(config msdsn.Config) (IntegratedAuthenticator, error)
GetIntegratedAuthenticator calls the authProvider specified in the 'authenticator' connection string parameter, if supplied. Otherwise fails back to the DefaultProviderName implementation for the platform.
type Provider ¶
type Provider interface { // GetIntegratedAuthenticator is responsible for returning an instance of the required IntegratedAuthenticator interface GetIntegratedAuthenticator(config msdsn.Config) (IntegratedAuthenticator, error) }
Provider returns an SSPI compatible authentication provider
type ProviderFunc ¶
type ProviderFunc func(config msdsn.Config) (IntegratedAuthenticator, error)
ProviderFunc is an adapter to convert a GetIntegratedAuthenticator func into a Provider
func (ProviderFunc) GetIntegratedAuthenticator ¶
func (f ProviderFunc) GetIntegratedAuthenticator(config msdsn.Config) (IntegratedAuthenticator, error)
Click to show internal directories.
Click to hide internal directories.