Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(auth): Add logout permissions to service account #319

Merged
merged 2 commits into from
Dec 17, 2021

Conversation

jan-law
Copy link
Contributor

@jan-law jan-law commented Dec 16, 2021

Related https://github.com/cryostatio/cryostat/issues/717

Adds permissions needed for the backend to list and delete an oauthaccesstoken.

I believe the oc logout command in the OpenShift docs corresponds to the cryostat frontend POST https://oauth-server-namespace-route/logout request that removes the session cookie stored in the OAuth server. This /logout call invalidates the token but does not delete any existing invalid tokens, which is why the backend needs to make a second request to delete the access token.

OpenShift OAuth logout docs
OpenShift OAuth endpoint for deleting access tokens

@jan-law jan-law added the feat New feature or request label Dec 16, 2021
@jan-law jan-law requested a review from ebaron December 16, 2021 18:50
Copy link
Member

@ebaron ebaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ebaron ebaron merged commit 5c399ff into cryostatio:main Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants