Skip to content

Commit

Permalink
Add missing method arg
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed Mar 5, 2024
1 parent 938a1b5 commit d7f70b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keycloak_oauth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def setup_fastapi_routes(self) -> None:
self.router.add_api_route("/logout", self.logout)
self.router.add_api_route("/certs", self.public_keys)

async def public_keys(self) -> dict[str, Any]:
async def public_keys(self, request: Request) -> dict[str, Any]:
return {"keys": [self.pub]}

async def login_page(
Expand Down
2 changes: 1 addition & 1 deletion keycloak_oauth/starlette_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def handle_auth_callback(self, request: Request) -> RedirectResponse:

@login_not_required
async def public_keys(self, request: Request) -> dict[str, Any]:
return await self.keycloak.public_keys()
return await self.keycloak.public_keys(request)

def setup_admin(self, admin: BaseAdmin) -> None:
super().setup_admin(admin)
Expand Down

0 comments on commit d7f70b6

Please sign in to comment.