Q:

Spring boot disable SAML security in Local environment

I am using spring boot 1.4.0+spring-security-saml2-core 1.0.2 with the help of following link Spring-Boot-Saml-example it is working great. Now i would like to disable the spring-saml security in my local environment(Local PC).It should work in DEV & Production environment.What is the minimal change i should do to disable the SAML security in spring-Boot? or is it possible to set default user who is having all the securities so that SAML won't do the security checks(This is my assumption).

A:

The correct way to accomplish this is to use Spring Profiles.  You can setup a local profile that uses basic authentication and then enable SAML in your higher environments.
Profile Tutorial
Disable Spring Security using profiles

