auth

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticatedUser

type AuthenticatedUser struct {
	Auth     *models.Auth
	AuthSess *session.Session

	User *models.User
}

type Authorizer

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

func NewAuthorizer

func NewAuthorizer(db *gorm.DB, asf *session.Factory) *Authorizer

func (Authorizer) Authorize

func (a Authorizer) Authorize(sctx *session.RequestContext) (*AuthenticatedUser, error)

func (Authorizer) CreateAuthorization

func (a Authorizer) CreateAuthorization(sctx *session.RequestContext, user *models.User) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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