auth

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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

func GetTokenFromContext(c *gin.Context) string

GetTokenFromContext extracts the OIDC token from the Gin context Returns empty string if no token is present

Types

This section is empty.

Jump to

Keyboard shortcuts

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