auth

package
v0.0.0-...-99b79bc Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAuthenticationStrategy

type IAuthenticationStrategy interface {
	GetCurrentUser(r *http.Request) (businesslogic.Account, error)
	CreateUser(account *businesslogic.Account) error
}

IAuthenticationStrategy specifies the interface that an authentication strategy should implement. The implementation must be able to identify user through the HTTP request (via header, token, cookie, etc.), and must be able to create user account in the necessary user repository (database, LDAP, identity provider, etc)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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