Documentation ¶
Index ¶
- func GetAuthHeaderToken(c echo.Context) (string, error)
- type Pionen
- func (p *Pionen) GetJWT(username, password string) (string, error)
- func (p *Pionen) MAuthAdmin() echo.MiddlewareFunc
- func (p *Pionen) MAuthLevel(level uint8) echo.MiddlewareFunc
- func (p *Pionen) MAuthMod() echo.MiddlewareFunc
- func (p *Pionen) MAuthRoot() echo.MiddlewareFunc
- func (p *Pionen) MAuthUser() echo.MiddlewareFunc
- func (p *Pionen) MAuthUserId(f UidFunc) echo.MiddlewareFunc
- func (p *Pionen) MAuthUserUrlParam(param string) echo.MiddlewareFunc
- func (p *Pionen) ParseJWT(tokenString string) (*authClaim, error)
- func (p *Pionen) Shutdown()
- func (p *Pionen) Start()
- func (p *Pionen) VerifyJWTLevel(tokenString string, level uint8) bool
- func (p *Pionen) VerifyJWTUid(tokenString string, uid string) bool
- func (p *Pionen) VerifyUser(username, password string) (bool, *libertymodel.ModelUser)
- type UidFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pionen ¶
type Pionen struct { service.ServiceBase // contains filtered or unexported fields }
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) VerifyJWTLevel ¶
func (*Pionen) VerifyUser ¶
func (p *Pionen) VerifyUser(username, password string) (bool, *libertymodel.ModelUser)
Click to show internal directories.
Click to hide internal directories.