uPortal-Attic / uportal-app-framework

Framework for creating uPortal Applications
http://uportal-project.github.io/uportal-app-framework/
Apache License 2.0
23 stars 31 forks source link

Set uPortal refUrl on the redirect to login #1017

Closed apetro closed 3 years ago

apetro commented 3 years ago

miscService.redirectUser exists to redirect the user back through uPortal login in the case where it seems that API calls are failing because no longer logged in.

One big downside of that is losing the user's place in the application. They end up back at the uPortal-home main page (/web).

This Pull Request improves upon that status quo by leveraging uPortal server's existing refUrl feature. This sets refUrl on the redirect to uPortal Login, so that once uPortal Login has re-established a logged in uPortal session, uPortal Login redirects back to the refUrl rather than to the uPortal-home front page, and thus the logging back in is less disruptive, returning the user to where they were.


Review for security considerations

PR considerations checklist: