spring security是springboot支持的权限控制系统。

  • security.basic.authorize-mode

    要使用权限控制模式.

  • security.basic.enabled

    是否开启基本的鉴权,默认为true

  • security.basic.path

    需要鉴权的path,多个的话以逗号分隔,默认为[/**]

  • security.basic.realm

    HTTP basic realm 的名字,默认为Spring

  • security.enable-csrf

    是否开启cross-site request forgery校验,默认为false.

  • security.filter-order

    Security filter chain的order,默认为0

  • security.headers.cache

    是否开启http头部的cache控制,默认为false.

  • security.headers.content-type

    是否开启X-Content-Type-Options头部,默认为false.

  • security.headers.frame

    是否开启X-Frame-Options头部,默认为false.

  • security.headers.hsts

    指定HTTP Strict Transport Security (HSTS)模式(none, domain, all).

  • security.headers.xss

    是否开启cross-site scripting (XSS) 保护,默认为false.

  • security.ignored

    指定不鉴权的路径,多个的话以逗号分隔.

  • security.oauth2.client.access-token-uri

    指定获取access token的URI.

  • security.oauth2.client.access-token-validity-seconds

    指定access token失效时长.

  • security.oauth2.client.additional-information.[key]

    设定要添加的额外信息.

  • security.oauth2.client.authentication-scheme

    指定传输不记名令牌(bearer token)的方式(form, header, none,query),默认为header

  • security.oauth2.client.authorities

    指定授予客户端的权限.

  • security.oauth2.client.authorized-grant-types

    指定客户端允许的grant types.

  • security.oauth2.client.auto-approve-scopes

    对客户端自动授权的scope.

  • security.oauth2.client.client-authentication-scheme

    传输authentication credentials的方式(form, header, none, query),默认为header方式

  • security.oauth2.client.client-id

    指定OAuth2 client ID.

  • security.oauth2.client.client-secret

    指定OAuth2 client secret. 默认是一个随机的secret.

  • security.oauth2.client.grant-type

    指定获取资源的access token的授权类型.

  • security.oauth2.client.id

    指定应用的client ID.

  • security.oauth2.client.pre-established-redirect-uri

    服务端pre-established的跳转URI.

  • security.oauth2.client.refresh-token-validity-seconds

    指定refresh token的有效期.

  • security.oauth2.client.registered-redirect-uri

    指定客户端跳转URI,多个以逗号分隔.

  • security.oauth2.client.resource-ids

    指定客户端相关的资源id,多个以逗号分隔.

  • security.oauth2.client.scope

    client的scope

  • security.oauth2.client.token-name

    指定token的名称

  • security.oauth2.client.use-current-uri

    是否优先使用请求中URI,再使用pre-established的跳转URI. 默认为true

  • security.oauth2.client.user-authorization-uri

    用户跳转去获取access token的URI.

  • security.oauth2.resource.id

    指定resource的唯一标识.

  • security.oauth2.resource.jwt.key-uri

    JWT token的URI. 当key为公钥时,或者value不指定时指定.

  • security.oauth2.resource.jwt.key-value

    JWT token验证的value. 可以是对称加密或者PEMencoded RSA公钥. 可以使用URI作为value.

  • security.oauth2.resource.prefer-token-info

    是否使用token info,默认为true

  • security.oauth2.resource.service-id

    指定service ID,默认为resource.

  • security.oauth2.resource.token-info-uri

    token解码的URI.

  • security.oauth2.resource.token-type

    指定当使用userInfoUri时,发送的token类型.

  • security.oauth2.resource.user-info-uri

    指定user info的URI

  • security.oauth2.sso.filter-order

    如果没有显示提供WebSecurityConfigurerAdapter时指定的Filter order.

  • security.oauth2.sso.login-path

    跳转到SSO的登录路径默认为/login.

  • security.require-ssl

    是否对所有请求开启SSL,默认为false.

  • security.sessions

    指定Session的创建策略(always, never, if_required, stateless).

  • security.user.name

    指定默认的用户名,默认为user.

  • security.user.password

    默认的用户密码.

  • security.user.role

    默认用户的授权角色.

spring-boot-starter-security Spring Boot中集成Spring Security的更多相关文章

  1. 【Spring】关于Boot应用中集成Spring Security你必须了解的那些事

    Spring Security Spring Security是Spring社区的一个顶级项目,也是Spring Boot官方推荐使用的Security框架.除了常规的Authentication和A ...

  2. 关于Boot应用中集成Spring Security你必须了解的那些事

    Spring Security Spring Security是Spring社区的一个顶级项目,也是Spring Boot官方推荐使用的Security框架.除了常规的Authentication和A ...

  3. Spring Boot中集成Spring Security 专题

    check to see if spring security is applied that the appropriate resources are permitted: @Configurat ...

  4. Spring Boot 2.X(十八):集成 Spring Security-登录认证和权限控制

    前言 在企业项目开发中,对系统的安全和权限控制往往是必需的,常见的安全框架有 Spring Security.Apache Shiro 等.本文主要简单介绍一下 Spring Security,再通过 ...

  5. 06_在web项目中集成Spring

    在web项目中集成Spring 一.使用Servlet进行集成测试 1.直接在Servlet 加载Spring 配置文件 ApplicationContext applicationContext = ...

  6. 在Struts2中集成Spring详细讲解

    Spring的官方定义是:一个轻量级的IoC和Aop容器框架,它使用了一种叫做依赖注入的技术. 所谓依赖注入,就是指将创建对象以及协议依赖对象之间合作的责任从对象自身中转移到"工厂" ...

  7. JavaWeb_(Spring框架)在Struts+Hibernate框架中引入Spring框架

    spring的功能:简单来说就是帮我们new对象,什么时候new对象好,什么时候销毁对象. 在MySQL中添加spring数据库,添加user表,并添加一条用户数据 使用struts + hibern ...

  8. SpringBoot集成Spring Security

    1.Spring Security介绍 Spring security,是一个强大的和高度可定制的身份验证和访问控制框架.它是确保基于Spring的应用程序的标准 --来自官方参考手册 Spring ...

  9. spring boot rest 接口集成 spring security(2) - JWT配置

    Spring Boot 集成教程 Spring Boot 介绍 Spring Boot 开发环境搭建(Eclipse) Spring Boot Hello World (restful接口)例子 sp ...

随机推荐

  1. querySelector.. 方法相比 getElementsBy..

    querySelectorAll 返回的是一个 Static Node List,而 getElementsBy 系列的返回的是一个 Live Node List. 看看下面这个经典的例子 [5]: ...

  2. Map集合学习

    Java中常用的Map实现类主要有:HashMap.HashTable.TreeMap.LinkedHashMap. 一:HashMap HashMap介绍 HashMap的底层其实是“链表的数组”, ...

  3. 如何创建一个基于命令行工具的跨平台的 NuGet 工具包

    命令行可是跨进程通信的一种非常方便的手段呢,只需启动一个进程传入一些参数即可完成一些很复杂的任务.NuGet 为我们提供了一种自动导入 .props 和 .targets 的方法,同时还是一个 .NE ...

  4. MySQL中的表中增加删除字段

    1.增加一个字段alter table user表 add COLUMN new1字段 VARCHAR(20)   NOT NULL DEFAULT 0; //增加一个字段,VARCHERA 20 , ...

  5. npm 可执行模块的开发&&私服发布

    备注:    大家日常在使用npm 安装依赖的时候有一些是命令行工具,比如vue-cli,具体的开发比较简单,同时 可以基于此开发一些脚手架,方便开发. 1. 项目初始化 npm init 备注:按照 ...

  6. C/S模式与B/S模式的详细介绍

    网络程序开发的两种计算模式--C/S模式与B/S模式.两种各有千秋,用于不同场合. C/S适用于专人使用,安全性要求较高的系统: B/S适用于交互性比较频繁的场合,容易被人们所接受,倍受用户和软件开发 ...

  7. Unit06: 外部对象概述 、 window 对象 、 document 对象

    Unit06: 外部对象概述 . window 对象 . document 对象 小代码演示: <!DOCTYPE html> <html> <head> < ...

  8. 手动下载阿里云Nexus上的Jar包

    手动下载阿里云Nexus上的Jar包 1.1 在任意目录下创建一个文件夹,创建一个pom.xml文件,一个bat批处理脚本,如图: 1.2 DownLoad.bat文件中的内容: call mvn - ...

  9. java中Mongo

    1.  query.fields().include("idfa").include("imei").include("id").inclu ...

  10. 算法训练 安慰奶牛(节点有权值的MST)

    问题描述 Farmer John变得非常懒,他不想再继续维护供奶牛之间供通行的道路.道路被用来连接N个牧场,牧场被连续地编号为1到N.每一个牧场都是一个奶牛的家.FJ计划除去P条道路中尽可能多的道路, ...