diff --git a/keycloak_oauth/starlette_admin.py b/keycloak_oauth/starlette_admin.py index 2e22b0f..a1b9c5f 100644 --- a/keycloak_oauth/starlette_admin.py +++ b/keycloak_oauth/starlette_admin.py @@ -52,7 +52,8 @@ async def handle_auth_callback(self, request: Request) -> RedirectResponse: @login_not_required async def public_keys(self, request: Request) -> JSONResponse: - return JSONResponse(self.keycloak.public_keys(request)) + keys = await self.keycloak.public_keys(request) + return JSONResponse(keys) def setup_admin(self, admin: BaseAdmin) -> None: super().setup_admin(admin)