-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
OIDC Logout Bug #14545
OIDC Logout Bug #14545
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.
LGTM! Thanks 🚀
ui/app/components/auth-form.js
Outdated
@@ -206,12 +211,15 @@ export default Component.extend(DEFAULTS, { | |||
showLoading: or('isLoading', 'authenticate.isRunning', 'fetchMethods.isRunning', 'unwrapToken.isRunning'), | |||
|
|||
authenticate: task( | |||
waitFor(function* (backendType, data) { | |||
let clusterId = this.cluster.id; | |||
waitFor(function* (backend, data) { |
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.
I do like that the previous name was clear that this is the backend type, not the backend name. Could we add a comment or keep the old name here?
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.
Sure I can change it back. The auth service authenticate
method has it named backend
so I thought I would align it that way.
* fixes issue with token auth selected after logging out from oidc or jwt methods * adds changelog entry * reverts backendType var name change in auth-form authenticate method
* fixes issue with token auth selected after logging out from oidc or jwt methods * adds changelog entry * reverts backendType var name change in auth-form authenticate method
It was discovered that when logging out when previously authenticated via OIDC or JWT auth methods the
with
query param is set totoken
which hydrates the auth form with thetoken
auth method selected rather than the previously logged in method. To ensure that the selected auth method persists I updated the auth service to usesessionStorage
for this piece of state.