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 16:27:00 UTC
[jira] [Created] (SHIRO-713) Need a way to set the cookie PATH
Steinar Bang created SHIRO-713:
----------------------------------
Summary: Need a way to set the cookie PATH
Key: SHIRO-713
URL: https://issues.apache.org/jira/browse/SHIRO-713
Project: Shiro
Issue Type: Improvement
Affects Versions: 1.4.1
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.
However to get the single sign-on to work I need "outside help" from an nginx reverse proxy that rewrites the cookie paths:
https://github.com/steinarb/authservice#installing-and-configuring-nginx
{noformat}
location /authservice {
auth_request off; # Necessary for REST API POST to work, shiro will handle authorization here
proxy_pass http://localhost:8181/authservice;
proxy_cookie_path ~^/authservice.*$ /;
proxy_set_header Host $host;
}
{noformat}
(the proxy_cookie_path directive).
It would be nice to be able to have this work without the reverse proxy and cookie rewrite.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)