auth

package
v0.0.46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context) *Auth

func (*Auth) AuthMethod

func (a *Auth) AuthMethod(user, addr string) (string, error)

func (*Auth) Negotiate

func (a *Auth) Negotiate(c *mysql.Conn, user string, remoteAddr net.Addr) (mysql.Getter, error)

func (*Auth) Salt

func (a *Auth) Salt() ([]byte, error)

func (*Auth) ValidateHash

func (a *Auth) ValidateHash(salt []byte, user string, authResponse []byte, remoteAddr net.Addr) (mysql.Getter, error)

type Claim

type Claim struct {
	Username string
	Claims   *tokens.Claims
}

func (*Claim) Get

func (c *Claim) Get() *query.VTGateCallerID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL