From 65748db682fc0ce1e42900ad51e041ec7b8be021 Mon Sep 17 00:00:00 2001 From: SZ Li Date: Sun, 21 Sep 2025 11:20:06 +0800 Subject: [PATCH] =?UTF-8?q?Add=20=20jwks.json=20=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 6ca55b7..2c055de 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # spring-oauth-server
-java config版本 - Spring与OAuth2/OIDC的整合完整示例. OIDC1.0 + OAuth2.1 @@ -85,24 +83,27 @@ java config版本 6. 参考oauth2.1-flow.md(位于others目录)的内容并测试之(也可在浏览器中访问相应的地址,如: http://localhost:8080/ 在界面上操作). -
-

配置参数说明

- 说明配置文件application.properties中的主要变量。 - - - - - - - - - - - -
参数名必须?默认值说明
spring.datasource.*-数据库连接相关配置
spring.thymeleaf.*-Spring MVC thymeleaf相关配置
server.port8080服务运行端口号
spring.security.oauth2.authorizationserver.issuerOAuth2 issuer, 生产环境配置对外访问完整地址
spring.application.name应用组件名称
-
+### 配置参数说明 +说明配置文件application.properties中的主要配置参数。 + + + + + + + + + + + +
参数名必须?默认值说明
spring.datasource.*-数据库连接相关配置
spring.thymeleaf.*-Spring MVC thymeleaf相关配置
server.port8080服务运行端口号
spring.security.oauth2.authorizationserver.issuerOAuth2 issuer, 生产环境配置对外访问完整地址
spring.application.name应用组件名称
+### jwks.json 说明 + +为了安全使用OIDC, 请在不同的环境使用不同的JWK(即更换 jwks.json 中的文件内容); +如何生成新的JWK请参考 JwksTest.java 类. + ## grant_type 介绍 说明OAuth2.1支持的grant_type(授权方式)与功能