Documentation ¶
Overview ¶
Package middleware Authorization
Index ¶
- func AuthenticationRequired() gin.HandlerFunc
- func BCSJWTDecode(jwtToken string) (*rest.UserClaimsInfo, error)
- func BKAPIGWJWTDecode(jwtToken string) (*rest.APIGWToken, error)
- func GetClusterId(c *gin.Context) string
- func GetProjectCode(c *gin.Context) string
- func GetProjectIdOrCode(c *gin.Context) string
- func GetSessionId(c *gin.Context) string
- func NsScopeAuthorization() gin.HandlerFunc
- func ProjectAuthorization() gin.HandlerFunc
- func ProjectParse() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticationRequired ¶
func AuthenticationRequired() gin.HandlerFunc
AuthenticationRequired API类型, 兼容多种认证模式
func BCSJWTDecode ¶
func BCSJWTDecode(jwtToken string) (*rest.UserClaimsInfo, error)
BCSJWTDecode BCS 网关 JWT 解码
func BKAPIGWJWTDecode ¶
func BKAPIGWJWTDecode(jwtToken string) (*rest.APIGWToken, error)
BKAPIGWJWTDecode 蓝鲸APIGW JWT 解析
func NsScopeAuthorization ¶
func NsScopeAuthorization() gin.HandlerFunc
NsScopeAuthorization 命名空间域资源鉴权
func ProjectAuthorization ¶
func ProjectAuthorization() gin.HandlerFunc
ProjectAuthorization project 鉴权
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.