My problem is to handle all requests firstly with basic authentication and then with custom form-login authentication.
I came from this Handling both form and HTTP basic authentication with different sources
But I want to use double authentication on ALL requests
So I want to achieve something like this:
<http>
<intercept-url pattern="/**" access="isAuthenticated()"/>
<http-basic />
<intercept-url pattern="/**" access="isAuthenticated()"/>
<form-login
login-page="/login"
default-target-url="/welcome"
authentication-failure-url="/login?error"
username-parameter="username"
password-parameter="password" />
</http>
But I don't know is there any chance to do like this.
Thank you.