MCPcopy Create free account
hub / github.com/Effect-TS/effect / Authorization

Class Authorization

packages/platform/test/OpenApi.test.ts:1555–1571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1553
1554 // Create the Authorization middleware
1555 class Authorization extends HttpApiMiddleware.Tag<Authorization>()(
1556 "Authorization",
1557 {
1558 failure: Unauthorized,
1559 provides: Resource,
1560 security: {
1561 myBearer: HttpApiSecurity.bearer,
1562 myApiKey: HttpApiSecurity.apiKey({ in: "cookie", key: "mykey" }),
1563 myBasic: HttpApiSecurity.basic,
1564 myAnnotatedBearer: HttpApiSecurity.annotate(
1565 HttpApiSecurity.bearer,
1566 OpenApi.Description,
1567 "myAnnotatedBearer description"
1568 )
1569 }
1570 }
1571 ) {}
1572 const api = HttpApi.make("api").add(
1573 HttpApiGroup.make("group")
1574 .add(

Callers

nothing calls this directly

Calls 1

annotateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…