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

Fix default redirect on successful WebAuthn login #35604

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Dec 5, 2022

  • Resolves: ---

A quick search didn't show a related ticket but there might be some.

Summary

A user is redirected to /false after logging in succesfully when no redirect url parameter is specified. I added a default url as a fallback.

Before

The user is redirected to the page specified via the redirect_url parameter. If it isn't set, the user is redirected to /false.

image

After

The user is redirected to the page specified via the redirect_url parameter. If it isn't set, the user is redirected to the configured default page.

TODO

  • Probably fix tests

Checklist

@st3iny st3iny added this to the Nextcloud 26 milestone Dec 5, 2022
@st3iny st3iny self-assigned this Dec 5, 2022
@st3iny
Copy link
Member Author

st3iny commented Dec 5, 2022

/backport to stable25

@st3iny
Copy link
Member Author

st3iny commented Dec 5, 2022

/backport to stable24

@st3iny
Copy link
Member Author

st3iny commented Dec 5, 2022

/backport to stable23

@st3iny st3iny marked this pull request as ready for review December 5, 2022 14:25
@st3iny st3iny added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Dec 5, 2022
@st3iny st3iny requested review from CarlSchwan, ChristophWurst and a team December 5, 2022 14:25
@ChristophWurst
Copy link
Member

This might be an old bug. Before #34662 we'd still redirect to the default page.

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

🙈

@szaimen
Copy link
Contributor

szaimen commented Dec 5, 2022

CI failure unrelated

@szaimen szaimen merged commit 8c59ba4 into master Dec 5, 2022
@szaimen szaimen deleted the fix/noid/webauthn-redirect-after-login branch December 5, 2022 15:31
@st3iny
Copy link
Member Author

st3iny commented Dec 5, 2022

This might be an old bug. Before #34662 we'd still redirect to the default page.

Ahh, that would explain why it was broken but nobody noticed until recently.

@backportbot-nextcloud
Copy link

The backport to stable25 failed. Please do this backport manually.

@backportbot-nextcloud
Copy link

The backport to stable24 failed. Please do this backport manually.

@backportbot-nextcloud
Copy link

The backport to stable23 failed. Please do this backport manually.

@st3iny
Copy link
Member Author

st3iny commented Dec 6, 2022

/backport to stable25

@szaimen
Copy link
Contributor

szaimen commented Dec 6, 2022

This was only a problem in master so no need for backports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants