pionen

package
v0.0.0-...-cde4198 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthHeaderToken

func GetAuthHeaderToken(c echo.Context) (string, error)

Types

type Pionen

type Pionen struct {
	service.ServiceBase
	// contains filtered or unexported fields
}

func New

func New(signingKey, issuer string, hours int, repoService kappa.Const) *Pionen

func (*Pionen) GetJWT

func (p *Pionen) GetJWT(username, password string) (string, error)

func (*Pionen) MAuthAdmin

func (p *Pionen) MAuthAdmin() echo.MiddlewareFunc

func (*Pionen) MAuthLevel

func (p *Pionen) MAuthLevel(level uint8) echo.MiddlewareFunc

func (*Pionen) MAuthMod

func (p *Pionen) MAuthMod() echo.MiddlewareFunc

func (*Pionen) MAuthRoot

func (p *Pionen) MAuthRoot() echo.MiddlewareFunc

func (*Pionen) MAuthUser

func (p *Pionen) MAuthUser() echo.MiddlewareFunc

func (*Pionen) MAuthUserId

func (p *Pionen) MAuthUserId(f UidFunc) echo.MiddlewareFunc

func (*Pionen) MAuthUserUrlParam

func (p *Pionen) MAuthUserUrlParam(param string) echo.MiddlewareFunc

func (*Pionen) ParseJWT

func (p *Pionen) ParseJWT(tokenString string) (*authClaim, error)

func (*Pionen) Shutdown

func (p *Pionen) Shutdown()

func (*Pionen) Start

func (p *Pionen) Start()

func (*Pionen) VerifyJWTLevel

func (p *Pionen) VerifyJWTLevel(tokenString string, level uint8) bool

func (*Pionen) VerifyJWTUid

func (p *Pionen) VerifyJWTUid(tokenString string, uid string) bool

func (*Pionen) VerifyUser

func (p *Pionen) VerifyUser(username, password string) (bool, *libertymodel.ModelUser)

type UidFunc

type UidFunc func(echo.Context) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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