SpringBoot配置属性系列

另外附上个人关于springboot的一些文章

序

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
      默认用户的授权角色.

SpringBoot配置属性之Security的更多相关文章

  1. SpringBoot配置属性之Server

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  2. SpringBoot配置属性转载地址

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  3. SpringBoot配置属性之其他

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  4. SpringBoot配置属性之Migration

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  5. SpringBoot配置属性之MQ

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  6. SpringBoot配置属性之NOSQL

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  7. SpringBoot配置属性之MVC

    SpringBoot配置属性系列 SpringBoot配置属性之MVC SpringBoot配置属性之Server SpringBoot配置属性之DataSource SpringBoot配置属性之N ...

  8. SpringBoot配置属性二

    server配置 server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.e ...

  9. SpringBoot配置属性之Server参数

    server配置server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.ex ...

随机推荐

  1. Magento错误 Illegal scheme supplied, only alphanumeric characters are permitted

    1.检查表core_config_data 'web/unsecure/base_url' 和'web/secure/base_url' 的值是否是正确的链接地址 2.删除系统目录var下所有子目录及 ...

  2. Install Hyper-V on Windows 10

      Enable Hyper-V to create virtual machines on Windows 10.Hyper-V can be enabled in many ways includ ...

  3. Struts2的Action继承ActionSupport时,利用AOP来拦截Action出现NoSuchMethodException

    参考:http://zhanghua.1199.blog.163.com/blog/static/46449807201111139501298/ 做项目的时候,由于要用到在Struts2的Actio ...

  4. AI单挑Dota 2世界冠军:被电脑虐哭……

    OpenAI的机器人刚刚在 Dota2 1v1 比赛中战胜了人类顶级职业玩家 Denti.以建设安全的通用人工智能为己任的 OpenAI,通过“Self-Play”的方式,从零开始训练出了这个机器人. ...

  5. JavaScript常用设计模式

    单例模式:确保类只能被实例化一次. var obj = {} 2.函数返回值 var func = function () {return {}} var obj = func(); 3.构造函数初始 ...

  6. asp.net 定时执行任务代码 定时采集数据

    using System; using System.Data; using System.Configuration; using System.Collections; using System. ...

  7. ZH奶酪:Python中zip函数的使用方法

    定义:zip([iterable, …]) zip()是Python的一个内建函数,它接受一系列可迭代的对象作为参数,将对象中对应的元素打包成一个个tuple(元组),然后返回由这些 tuples组成 ...

  8. vasa构架

  9. 开发JAVA9以上的项目时,出现ClassNotFoundException: javax.xml.bind.JAXBException的解决方法

    一.问题描述: 开发JAVA9以上的项目时,出现ClassNotFoundException: javax.xml.bind.JAXBException的解决方法 二.问题样例 三.解决方案 打开mv ...

  10. WorkFlow业务介绍

    WorkFlow简介 WorkFlow在我们的系统中,解释为系统提示更为恰当一下,当一件事情发生的时候可能需要通知某些人,这样其他人就可以做后续的处理了. 两个SST dts_workflow - W ...