MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / challengeFor

Function challengeFor

apps/host-selfhost/src/mcp/auth.ts:173–174  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

171 // as the envelope's default; we supply it explicitly to keep the 401's
172 // `WWW-Authenticate` fully owned by the provider.
173 const challengeFor = (request: Request): string =>
174 `Bearer resource_metadata="${resourceMetadataUrl(request)}"`;
175
176 const discoveryRoutes: ReadonlyArray<McpDiscoveryRoute> = [
177 {

Callers 1

authenticateFunction · 0.70

Calls 1

resourceMetadataUrlFunction · 0.70

Tested by

no test coverage detected