Skip to content

Commit

Permalink
bug: make revoke functionality work again (#665)
Browse files Browse the repository at this point in the history
* make revoke functionality work again

* formatting
  • Loading branch information
wolfv authored Sep 28, 2023
1 parent 3869736 commit ef6836a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ dependencies:
- conda-content-trust
- pyinstrument
- pytest-asyncio
- pytest-timeout
- pydantic >=2
- pip:
- git+https://github.com/jupyter-server/jupyter_releaser.git@v2
8 changes: 5 additions & 3 deletions quetz/authentication/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ async def login(self, request: Request):
request, str(redirect_uri)
)

async def revoke(self, request):
client_id = self.client.client_id
return RedirectResponse(self.revoke_url.format(client_id=client_id))
async def revoke(self):
client_id = self.authenticator.client_id
return RedirectResponse(
self.authenticator.revoke_url.format(client_id=client_id)
)


class OAuthAuthenticator(BaseAuthenticator):
Expand Down

0 comments on commit ef6836a

Please sign in to comment.