lprimak opened a new issue, #1762:
URL: https://github.com/apache/shiro/issues/1762

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/shiro/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Enhancement Request
   
   When the app is behind a SSL-terminating proxy, Shiro will redirect to the 
default screen, or login screen, via non-SSL URL. This is because servlet 
"thinks" that the connection is non-SSL.
   However, since `X-Forwarding-Proto` is present, it should redirect to SSL.
   This is not a huge deal since the proxy will redirect back to SSL, however, 
it leads to 2+ additional redirect per login request, which should be avoided 
as optimization.
   
   
   ### Describe the solution you'd like
   
   Override `sendRedirect()` and append `https://` prefix if it's detected that 
https protocol is used by the proxy
   
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to