Skip to content

Commit 22811ae

Browse files
committed
Cleanup
1 parent 8c17e21 commit 22811ae

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/stac_auth_proxy/middleware/UpdateOpenApiMiddleware.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,6 @@ async def augment_oidc_spec(message: Message):
9898

9999
return await self.app(scope, receive, augment_oidc_spec)
100100

101-
# def augment_spec(self, openapi_spec) -> dict[str, Any]:
102-
# """Augment the OpenAPI spec with auth information."""
103-
# components = openapi_spec.setdefault("components", {})
104-
# securitySchemes = components.setdefault("securitySchemes", {})
105-
# securitySchemes[self.oidc_auth_scheme_name] = {
106-
# "type": "openIdConnect",
107-
# "openIdConnectUrl": self.oidc_config_url,
108-
# }
109-
# for path, method_config in openapi_spec["paths"].items():
110-
# for method, config in method_config.items():
111-
# for private_method in self.private_endpoints.get(path, []):
112-
# if method.casefold() == private_method.casefold():
113-
# config.setdefault("security", []).append(
114-
# {self.oidc_auth_scheme_name: []}
115-
# )
116-
# return openapi_spec
117-
118101
def augment_spec(self, openapi_spec) -> dict[str, Any]:
119102
"""Augment the OpenAPI spec with auth information."""
120103
components = openapi_spec.setdefault("components", {})

0 commit comments

Comments
 (0)