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

Shibboleth: User is not redirected to previous page after login, and stuck on Log in page #2671

Closed
misilot opened this issue Nov 29, 2023 · 2 comments
Labels
authentication: Shibboleth related to integration with Shibboleth bug duplicate

Comments

@misilot
Copy link
Contributor

misilot commented Nov 29, 2023

Describe the bug
DSpace 7.6.1 -- When going to a deep link for submission such as https://server/submit?collection=6d684812-6d29-4564-8b51-f5670957936b, I am redirected to the Choose login page. Sometimes it redirects (if like in a incongito window), other times it just returns to the log in chooser page.

DSpace is trying to go to this page after logging in: https://server/server/api/authn/shibboleth?redirectUrl=https://server/submit?collection=6d684812-6d29-4564-8b51-f5670957936b

To Reproduce
Steps to reproduce the behavior:

  1. Enable Shibboleth
  2. Create a deep link to a collection user can submit to (/submit?collection=collection-uuid)
  3. Select Shibboleth Authentication
  4. Login to IdP
  5. You get returned to the login page, and not redirected to the submit page, and are stuck here, and can keep clicking Log in, and the UI never recognizes you are logged in. (It may if you eventually do a couple of hard refreshes)

Expected behavior

  1. Logged into DSpace
  2. Redirected to the deep linked collection submission page
  3. This seems to work on dspace demo with a local account.

Related work

@misilot misilot added bug needs triage New issue needs triage and/or scheduling labels Nov 29, 2023
@github-project-automation github-project-automation bot moved this to 🆕 Triage in DSpace Backlog Nov 29, 2023
@tdonohue
Copy link
Member

@misilot : This might be a duplicate of (or directly related to) #2669 ? If so, there's a possible fix already in #2670 that you may want to test out to see if it solves the problem for you.

@tdonohue tdonohue added the authentication: Shibboleth related to integration with Shibboleth label Nov 29, 2023
@misilot
Copy link
Contributor Author

misilot commented Nov 29, 2023

Thanks @tdonohue that seems to have fixed my issue!

It still hits the Log in page for 3-4 seconds before finally redirecting though.

@misilot misilot closed this as completed Nov 29, 2023
@github-project-automation github-project-automation bot moved this from 🆕 Triage to ✅ Done / Closed in DSpace Backlog Nov 29, 2023
@tdonohue tdonohue added duplicate and removed needs triage New issue needs triage and/or scheduling labels Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authentication: Shibboleth related to integration with Shibboleth bug duplicate
Projects
Status: Done / Closed
Development

No branches or pull requests

2 participants