Documentation
¶
Index ¶
- Variables
- func Auth() gin.HandlerFunc
- func IsStaticToken(c *gin.Context, ctx context.Context, tokenString string) (bool, error)
- func JWTAuth(c *gin.Context, ctx context.Context, tokenString string) error
- func OIDCAuth(c *gin.Context, ctx context.Context, tokenString string) error
- func RetrieveToken(c *gin.Context) (token string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = config.GetConfig()
View Source
var OidcProvider *oidc.Provider
View Source
var Tracer = otel.Tracer("pkg/middlewares")
Functions ¶
func Auth ¶
func Auth() gin.HandlerFunc
Auth middleware function to handle both OIDC and JWT authentication
func IsStaticToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.