authenticate

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: BSD-3-Clause Imports: 1 Imported by: 1

README

Authenticate component for Enorith

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential interface {
}

type Guard

type Guard interface {
	Check() (User, error)
	User() User
	Auth(User) error
}

type User

type User interface {
	UserIdentifier() UserIdentifier
}

type UserIdentifier

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

func Identifier

func Identifier(v interface{}) UserIdentifier

func (UserIdentifier) Int64

func (id UserIdentifier) Int64() int64

func (UserIdentifier) String

func (id UserIdentifier) String() string

func (UserIdentifier) Value

func (id UserIdentifier) Value() interface{}

type UserProvider

type UserProvider interface {
	FindUserById(UserIdentifier) (User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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