package integratedauth
import "github.com/microsoft/go-mssqldb/integratedauth"
Index ¶
- Variables
- func SetIntegratedAuthenticationProvider(providerName string, p Provider) error
- type IntegratedAuthenticator
- type Provider
- type ProviderFunc
Variables ¶
var ( DefaultProviderName string ErrProviderCannotBeNil = errors.New("provider cannot be nil") ErrProviderNameMustBePopulated = errors.New("provider name must be populated") )
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)
Source Files ¶
auth.go integratedauthenticator.go
Directories ¶
Path | Synopsis |
---|---|
integratedauth/krb5 | Package krb5 implements the integratedauth.IntegratedAuthenticator interface in order to provide kerberos/active directory (Windows) based authentication. |
integratedauth/ntlm |
- Version
- v1.2.0
- Published
- May 30, 2023
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 2 hours ago –
Tools for package owners.