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

Function challengeFor

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

Source from the content-addressed store, hash-verified

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

Callers 1

authenticateFunction · 0.70

Calls 1

resourceMetadataUrlFunction · 0.70

Tested by

no test coverage detected