You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Steinar Bang (JIRA)" <ji...@apache.org> on 2019/07/01 17:50:00 UTC

[jira] [Created] (SHIRO-714) Use a login page outside of the current webapps web context

Steinar Bang created SHIRO-714:
----------------------------------

             Summary: Use a login page outside of the current webapps web context
                 Key: SHIRO-714
                 URL: https://issues.apache.org/jira/browse/SHIRO-714
             Project: Shiro
          Issue Type: Improvement
            Reporter: Steinar Bang


I have written https://github.com/steinarb/authservice#forms-based-nginx-login-and-pluggable-shiro-auth-in-karaf which is a "poor man's single sign-on" for multiple webapps running inside the same apache karaf OSGi container.

This works but each webapp needs to implement their own login page.

I can specify a login page outside of the webapps web context like e.g. this in shiro.ini:
{noformat}
[main]
shiro.loginUrl = ../authservice/login
{noformat}

When not authenticated, the user will be redirected to /authservice/login on the same server, but when authenticated the user will be redirected to the /authservice/ path.

It would be nice to be able to specify a way to redirect to a URL outside the webapp so that I could use a single login page across all web applications.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)