Documentation
¶
Index ¶
Constants ¶
View Source
const TokenContextKey = "oidc_token"
Variables ¶
This section is empty.
Functions ¶
func ExtractTokenMiddleware ¶
func ExtractTokenMiddleware() gin.HandlerFunc
ExtractTokenMiddleware extracts OIDC token from request headers or cookies Envoy Gateway typically sets the token in: 1. Authorization header (Bearer token) 2. Or cookies (id_token, access_token) The middleware stores the token in the context for use by handlers
func GetTokenFromContext ¶
GetTokenFromContext extracts the OIDC token from the Gin context Returns empty string if no token is present
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.