Spring boot disable SAML security in Local environment

て烟熏妆下的殇ゞ 提交于 2019-12-11 05:14:42

问题


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).


回答1:


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



来源:https://stackoverflow.com/questions/38528502/spring-boot-disable-saml-security-in-local-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!