auth

package
v0.0.0-...-d6b644b Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAdmin

func CheckAdmin(c echo.Context) error

CheckAdmin 检查是否机构管理员

func CheckOwner

func CheckOwner(c echo.Context) error

CheckOwner 检查是否机构所有者

func GetOID

func GetOID(c echo.Context) string

GetOID 获得 org id

func GetUID

func GetUID(c echo.Context) string

GetUID 获得 user id

func ParseJWT

func ParseJWT(c echo.Context)

ParseJWT 在 echo 的 jwt 插件验证完成后,解析我们需要的数据存储到 context TODO: 已经废弃这一部分,等到完全不被依赖后删除。

Types

This section is empty.

Jump to

Keyboard shortcuts

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