I have configured Spring security 5.1.6 in Wildfly16 application server. For logout, i have done configuration as below;
When i'm using HTTP url, then no issues. But when i'm using HTTPS URL , after LOGOUT link is clicked it is redirecting to the relative path configured in "logout-success-url" with protocol as HTTP instead of HTTPS.
I have already tried with "<property name="redirectHttp10Compatible" value="false" />
" for InternalResourceViewResolver bean definition. But issue exists.
Also tried requires-channel as https. But issue exists. .
I dont want to hard code https URL in "logout-success-url".
Anything else we can try to fix this issue?