auth

package
v0.0.0-...-1088ae0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticate

type Authenticate interface {
	CheckAuth(token string) (bool, error)
	SetAuth(sm *scs.SessionManager, w http.ResponseWriter, r *http.Request) (http.ResponseWriter, error)
	RetrieveToken(r *http.Request) (string, error)
}

func NewHydraAuthenticate

func NewHydraAuthenticate() (Authenticate, error)

func NewKeystoneAuthenticate

func NewKeystoneAuthenticate() (Authenticate, error)

func NewNoneAuthenticate

func NewNoneAuthenticate() (Authenticate, error)

type HydraAuthenticate

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

func (HydraAuthenticate) CheckAuth

func (hydra HydraAuthenticate) CheckAuth(token string) (bool, error)

func (HydraAuthenticate) RetrieveToken

func (hydra HydraAuthenticate) RetrieveToken(r *http.Request) (string, error)

func (HydraAuthenticate) SetAuth

func (hydra HydraAuthenticate) SetAuth(sm *scs.SessionManager, w http.ResponseWriter, r *http.Request) (http.ResponseWriter, error)

type KeystoneAuthenticate

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

func (KeystoneAuthenticate) CheckAuth

func (keystone KeystoneAuthenticate) CheckAuth(token string) (bool, error)

func (KeystoneAuthenticate) RetrieveToken

func (keystone KeystoneAuthenticate) RetrieveToken(r *http.Request) (string, error)

func (KeystoneAuthenticate) SetAuth

func (keystone KeystoneAuthenticate) SetAuth(sm *scs.SessionManager, w http.ResponseWriter, r *http.Request) (http.ResponseWriter, error)

type NoneAuthenticate

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

func (NoneAuthenticate) CheckAuth

func (n NoneAuthenticate) CheckAuth(token string) (bool, error)

func (NoneAuthenticate) RetrieveToken

func (n NoneAuthenticate) RetrieveToken(r *http.Request) (string, error)

func (NoneAuthenticate) SetAuth

func (n NoneAuthenticate) SetAuth(sm *scs.SessionManager, w http.ResponseWriter, r *http.Request) (http.ResponseWriter, error)

Jump to

Keyboard shortcuts

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