From 31ddbe2ba243a4a6bb8abc3fcbf72790d6a34e31 Mon Sep 17 00:00:00 2001 From: "wangiegie@gmail.com" Date: Tue, 30 Jan 2018 22:47:21 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3ca8cc3e..3e36bd14 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,12 @@ ### 详细配置 wiki https://gitee.com/log4j/pig/wikis/ + ### 视频教程 + + 1. [课程介绍项目介绍](http://p3blpcsde.bkt.clouddn.com/1.mp4) + 2. ...还在录 + + ### now ``` lua pig From 5d81b3c81495b97854b8a94b8b71bf3291d25b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Wed, 31 Jan 2018 23:25:29 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fixed:=20=E6=97=A0=E6=B3=95=E7=9B=91?= =?UTF-8?q?=E6=8E=A7SSO=E5=AE=A2=E6=88=B7=E7=AB=AF=E4=BF=A1=E6=81=AF=20=20?= =?UTF-8?q?thx@=E6=98=AD=E5=8D=8E=E4=B8=8D=E8=B4=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/ResourceServerConfiguration.java | 26 +++++++++++++++++++ .../sso/{ => controller}/DemoController.java | 0 .../src/main/resources/application.yml | 14 ++++++++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 pig-modules/pig-sso-client-demo/src/main/java/com/github/pig/sso/config/ResourceServerConfiguration.java rename pig-modules/pig-sso-client-demo/src/main/java/com/github/pig/sso/{ => controller}/DemoController.java (100%) diff --git a/pig-modules/pig-sso-client-demo/src/main/java/com/github/pig/sso/config/ResourceServerConfiguration.java b/pig-modules/pig-sso-client-demo/src/main/java/com/github/pig/sso/config/ResourceServerConfiguration.java new file mode 100644 index 00000000..d5c9d3c3 --- /dev/null +++ b/pig-modules/pig-sso-client-demo/src/main/java/com/github/pig/sso/config/ResourceServerConfiguration.java @@ -0,0 +1,26 @@ +package com.github.pig.sso.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.security.config.annotation.web.builders.HttpSecurity; +import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer; +import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter; + +/** + * @author lengleng + * @date 2018年1月31日23:15:08 + * 当前配置 暴露监控信息 + */ +@Configuration +@EnableResourceServer +public class ResourceServerConfiguration extends ResourceServerConfigurerAdapter { + + @Override + public void configure(HttpSecurity http) throws Exception { + http + .authorizeRequests() + .anyRequest().authenticated() + .and() + .csrf().disable(); + } + +} \ No newline at end of file diff --git a/pig-modules/pig-sso-client-demo/src/main/java/com/github/pig/sso/DemoController.java b/pig-modules/pig-sso-client-demo/src/main/java/com/github/pig/sso/controller/DemoController.java similarity index 100% rename from pig-modules/pig-sso-client-demo/src/main/java/com/github/pig/sso/DemoController.java rename to pig-modules/pig-sso-client-demo/src/main/java/com/github/pig/sso/controller/DemoController.java diff --git a/pig-modules/pig-sso-client-demo/src/main/resources/application.yml b/pig-modules/pig-sso-client-demo/src/main/resources/application.yml index fa849942..b69eebd6 100644 --- a/pig-modules/pig-sso-client-demo/src/main/resources/application.yml +++ b/pig-modules/pig-sso-client-demo/src/main/resources/application.yml @@ -1,5 +1,16 @@ server: port: 4040 + context-path: /sso1 + +#监控短点配置 +management: + security: + enabled: false +endpoints: + actuator: + enabled: true + shutdown: + enabled: false security: oauth2: @@ -12,7 +23,6 @@ security: resource: jwt: key-uri: http://localhost:3000/oauth/token_key - sessions: never spring: application: @@ -24,9 +34,9 @@ spring: host: 106.14.69.75 port: 6381 password: + logging: config: classpath:logback.xml - --- spring: profiles: dev From c51a5481688e3432c49bd8032b7259a5b6194ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Thu, 1 Feb 2018 22:39:03 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=95=99=E7=A8=8B?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e36bd14..deafa577 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ ### 视频教程 1. [课程介绍项目介绍](http://p3blpcsde.bkt.clouddn.com/1.mp4) - 2. ...还在录 + 2. [环境搭建运行展示](http://p3blpcsde.bkt.clouddn.com/2.mp4) + 3. ...还在录 ### now