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

OIDC Logout Bug #14545

Merged
merged 3 commits into from
Mar 18, 2022
Merged

OIDC Logout Bug #14545

merged 3 commits into from
Mar 18, 2022

Conversation

zofskeez
Copy link
Contributor

It was discovered that when logging out when previously authenticated via OIDC or JWT auth methods the with query param is set to token which hydrates the auth form with the token auth method selected rather than the previously logged in method. To ensure that the selected auth method persists I updated the auth service to use sessionStorage for this piece of state.

@zofskeez zofskeez added ui bug Used to indicate a potential bug labels Mar 16, 2022
@zofskeez zofskeez added this to the 1.10.1 milestone Mar 16, 2022
@vercel vercel bot temporarily deployed to Preview – vault March 16, 2022 23:17 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook March 16, 2022 23:23 Inactive
Copy link
Collaborator

@hashishaw hashishaw left a 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 Show resolved Hide resolved
@@ -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) {
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

@vercel vercel bot temporarily deployed to Preview – vault March 18, 2022 14:51 Inactive
@zofskeez zofskeez merged commit d8128ea into main Mar 18, 2022
@zofskeez zofskeez deleted the oidc-logout-bug branch March 18, 2022 15:40
zofskeez added a commit that referenced this pull request Mar 18, 2022
* 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
zofskeez added a commit that referenced this pull request Mar 18, 2022
* 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
zofskeez added a commit that referenced this pull request Mar 18, 2022
* 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
zofskeez added a commit that referenced this pull request Mar 18, 2022
* 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
This was referenced Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants