middleware

package
v0.0.0-...-86d5f22 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package middleware Authorization

Index

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 GetClusterId

func GetClusterId(c *gin.Context) string

GetClusterId :

func GetProjectCode

func GetProjectCode(c *gin.Context) string

GetProjectCode 获取 projectCode 参数

func GetProjectIdOrCode

func GetProjectIdOrCode(c *gin.Context) string

GetProjectIdOrCode :

func GetSessionId

func GetSessionId(c *gin.Context) string

GetSessionId :

func NsScopeAuthorization

func NsScopeAuthorization() gin.HandlerFunc

NsScopeAuthorization 命名空间域资源鉴权

func ProjectAuthorization

func ProjectAuthorization() gin.HandlerFunc

ProjectAuthorization project 鉴权

func ProjectParse

func ProjectParse() gin.HandlerFunc

ProjectParse 解析 project

Types

This section is empty.

Jump to

Keyboard shortcuts

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