auth

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: May 28, 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. oauth2-proxy extAuth sets Authorization: Bearer <access_token> via headersToBackend. Cookies are a fallback for direct access or Envoy native OIDC.

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