-
Notifications
You must be signed in to change notification settings - Fork 31
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 OAuth logout #786
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks pretty reasonable. I'll take a look at the OpenShift auth docs next.
2bdf1d7
to
b208d42
Compare
This and cryostatio/cryostat-web#355 are looking pretty good. I'll wait until cryostatio/cryostat-operator#320 is resolved so I can also test that out - right now I'm seeing the (currently expected) CORS failure when trying to log out from the admin account. |
Note: The "Token Authentication" section in https://cryostat.io/get-started/ should also be updated when this OAuth feature becomes available in the next Cryostat release. |
This reverts commit b208d42.
Rebased just now. The only conflict was fixed by rebasing the web-client with the latest web-client commits on the main branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise. I would be okay with deferring my one suggestion above to a follow-up PR as well if you'd prefer, since that sort of cleanup also might change exception handling and the exceptions that are reported to the web-client.
Fixes #717
Depends on cryostatio/cryostat-web#355
Depends on cryostatio/cryostat-operator#319
Depends on cryostatio/cryostat-operator#320
Please see the -web PR for more information about the OAuth server logout behaviour.
This PR also updates the web client and caches the logout redirect url.