mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-11 21:29:02 +08:00
Merge branch 'master' of https://gitee.ltd/pigx/pigx
This commit is contained in:
commit
fec22614ad
3 files changed
+4
-2
No files matched your search
+2
-1
@@ -13,6 +13,7 @@
|
||||
|
||||
Date: 12/10/2018 21:57:20 PM
|
||||
*/
|
||||
USE pigxx;
|
||||
|
||||
SET NAMES utf8;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
@@ -222,7 +223,7 @@ CREATE TABLE `sys_oauth_client_details` (
|
||||
-- Records of `sys_oauth_client_details`
|
||||
-- ----------------------------
|
||||
BEGIN;
|
||||
INSERT INTO `sys_oauth_client_details` VALUES ('app', null, 'app', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('daemon', null, 'daemon', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('gen', null, 'gen', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('pig', null, 'pig', 'server', 'password,refresh_token,authorization_code', 'http://127.0.0.1:4040/sso1/login', null, null, null, null, 'true', '1'), ('test', null, 'test', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1');
|
||||
INSERT INTO `sys_oauth_client_details` VALUES ('app', null, 'app', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('daemon', null, 'daemon', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('gen', null, 'gen', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('pig', null, 'pig', 'server', 'password,refresh_token,authorization_code', 'http://localhost:4040/sso1/login,http://localhost:4041/sso1/login', null, null, null, null, 'true', '1'), ('test', null, 'test', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1');
|
||||
COMMIT;
|
||||
|
||||
-- ----------------------------
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
Date: 12/10/2018 21:57:09 PM
|
||||
*/
|
||||
USE pigxx_ac;
|
||||
|
||||
SET NAMES utf8;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import org.springframework.cloud.client.SpringCloudApplication;
|
||||
* <p>
|
||||
* 单点登录客户端
|
||||
* 1. 启动实例访问:http://localhost:4040/sso1/ 提示登录,然后获取到用户信息
|
||||
* 2. 再启动一个实例: http://localhost:4040/sso1/ 不需要登录即可获取当前用户信息
|
||||
* 2. 再启动一个实例: http://localhost:4041/sso1/ 不需要登录即可获取当前用户信息
|
||||
*/
|
||||
@EnableOAuth2Sso
|
||||
@SpringCloudApplication
|
||||
|
||||
Reference in new issue
Block a user