November 2017
Intermediate to advanced
542 pages
14h 24m
English
It is also possible that some environments may support both certificate-based and form-based authentication. If this is the case in your environment, it is also possible (and trivial) to support it with Spring Security. We can simply leave the default AuthenticationEntryPoint interface (redirecting to the form-based login page) intact and allow the user to log in using the standard login form if they do not supply a client certificate.
If you choose to configure your application this way, you'll need to adjust the Tomcat SSL settings (change as appropriate for your application server). Simply change the clientAuth directive to want, instead of true:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" ...
Read now
Unlock full access