Spring boot 在本地环境中禁用 SAML 安全 [英] Spring boot disable SAML security in Local environment

查看:76
本文介绍了Spring boot 在本地环境中禁用 SAML 安全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在以下链接的帮助下使用 spring boot 1.4.0+spring-security-saml2-core 1.0.2 Spring-Boot-Saml-example 效果很好.现在我想在我的本地环境(本地 PC)中禁用 spring-saml 安全性.它应该在 DEV & 中工作.生产环境.要在 spring-Boot 中禁用 SAML 安全性,我应该做的最小更改是什么?或者是否可以设置拥有所有证券的默认用户,以便 SAML 不进行安全检查(这是我的假设).

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

推荐答案

正确的方法是使用 Spring 配置文件.您可以设置使用基本身份验证的本地配置文件,然后在更高的环境中启用 SAML.

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.

个人资料教程

使用配置文件禁用 Spring Security

这篇关于Spring boot 在本地环境中禁用 SAML 安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆