devise_saml_authenticatable icon indicating copy to clipboard operation
devise_saml_authenticatable copied to clipboard

Support for landing page

Open justincatalana opened this issue 6 years ago • 1 comments

What would be the best way to first direct the unauthenticated user to a landing page prior to having them navigate to the IdP for logging in?

The current user experience is a little jarring just redirecting them over to the IdP, and not acknowledging the site they are visiting.

Related, can the IdP login be launched as a pop-up window as it is for a lot of websites using SSO?

I am assuming this could be worked out in similar ways to the Supporting multiple authentication strategies

Thank you!

justincatalana avatar Jan 20 '19 00:01 justincatalana

To redirect to a landing page, I would use a devise failure app, as described in the devise wiki: https://github.com/plataformatec/devise/wiki/How-To:-Redirect-to-a-specific-page-when-the-user-can-not-be-authenticated

I've never implemented a login flow using a popup window, but it seems possible. You'd need the landing page to communicate with the parent window when login is complete so it can refresh and load the correct page.

adamstegman avatar Jan 22 '19 17:01 adamstegman