| 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( |
nothing calls this directly
no test coverage detected
searching dependent graphs…