auth

package
v0.0.0-...-26e7deb Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	Authenticate(ctx context.Context, username, password string) error
}

func NewFirestoreAuthenticator

func NewFirestoreAuthenticator(client *firestore.Client, collection string) Authenticator

type FirestoreAuthenticator

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

func (*FirestoreAuthenticator) Authenticate

func (a *FirestoreAuthenticator) Authenticate(ctx context.Context, username, password string) error

type User

type User struct {
	Username     string `firestore:"username"`
	PasswordHash string `firestore:"password_hash"`
}

Jump to

Keyboard shortcuts

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