Closed aaron-collier closed 6 years ago
I believe Devise has some mechanics we can use for this: https://github.com/plataformatec/devise/wiki/How-To:-redirect-to-a-specific-page-on-successful-sign-in
@mjgiarlo It does. This MAY just be the first step here, as it's mirroring what was done in SearchWorks, in order to get this working. Ideally, yeah, the devise mechanism is coming ;-)
Ah, that's good to know re: SW. OK. Do we need a ticket for the follow-up work to use Devise instead of a view override? Approving for now.
@mjgiarlo I opened a terse issue, please feel free to use your github-issue-fu to clean that up :-)
+1
to using after_sign_in_path_for
rather than overriding a template.
This sets the referrer to /dashboard on shibboleth login for the proper return end-point.