@@ -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