MCPcopy
hub / github.com/kagent-dev/kagent / GetSubjectTokenFunc

FuncType GetSubjectTokenFunc

go/adk/pkg/sts/integration.go:12–12  ·  view source on GitHub ↗

GetSubjectTokenFunc is a function type for extracting subject tokens. It receives the bearer token (from Authorization header) and should return the subject token for STS exchange, or empty string if not available.

func(bearerToken string) string

Source from the content-addressed store, hash-verified

10// It receives the bearer token (from Authorization header) and should return
11// the subject token for STS exchange, or empty string if not available.
12type GetSubjectTokenFunc func(bearerToken string) string
13
14// DefaultGetSubjectToken extracts the JWT token from the Authorization header.
15// It expects the bearerToken to already be the JWT (without "Bearer " prefix).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected