From e11b9e6f13589651a6685bc6bc143d5b1701d597 Mon Sep 17 00:00:00 2001 From: lbw Date: Wed, 4 Jan 2023 19:41:45 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20=E5=88=A0=E9=99=A4sso-demo=20=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=EF=BC=8C=E5=8F=AF=E5=8F=82=E8=80=83=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=8D=95=E7=82=B9=E7=99=BB=E5=BD=95=E8=87=AA=E8=A1=8C=E6=95=B4?= =?UTF-8?q?=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pigx-visual/pigx-sso-client-demo/pom.xml | 69 ------------------- .../sso/PigxSsoClientDemoApplication.java | 39 ----------- .../pigx/sso/controller/DemoController.java | 36 ---------- .../src/main/resources/bootstrap.yml | 20 ------ .../src/main/resources/static/index.html | 27 -------- pigx-visual/pom.xml | 1 - 6 files changed, 192 deletions(-) delete mode 100644 pigx-visual/pigx-sso-client-demo/pom.xml delete mode 100644 pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/PigxSsoClientDemoApplication.java delete mode 100644 pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/controller/DemoController.java delete mode 100644 pigx-visual/pigx-sso-client-demo/src/main/resources/bootstrap.yml delete mode 100644 pigx-visual/pigx-sso-client-demo/src/main/resources/static/index.html diff --git a/pigx-visual/pigx-sso-client-demo/pom.xml b/pigx-visual/pigx-sso-client-demo/pom.xml deleted file mode 100644 index 8ed0a1648..000000000 --- a/pigx-visual/pigx-sso-client-demo/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - 4.0.0 - - pigx-sso-client-demo - jar - - pigx-sso-client-demo - 单点登录客户端 - - - com.pig4cloud - pigx-visual - 4.6.0 - - - - - - org.springframework.security.oauth.boot - spring-security-oauth2-autoconfigure - - - - org.springframework.boot - spring-boot-starter-web - - - - org.springframework.boot - spring-boot-starter-undertow - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - org.apache.maven.plugins - maven-deploy-plugin - - true - - - - - - diff --git a/pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/PigxSsoClientDemoApplication.java b/pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/PigxSsoClientDemoApplication.java deleted file mode 100644 index 94258cc10..000000000 --- a/pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/PigxSsoClientDemoApplication.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.sso; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso; - -/** - * @author lengleng - * @date 2018年11月15日17:06:26 - *

- * 单点登录客户端 1. 启动实例访问:http://localhost:4040/sso1/ 提示登录,然后获取到用户信息 2. 再启动一个实例: - * http://localhost:4041/sso1/ 不需要登录即可获取当前用户信息 - */ -@EnableOAuth2Sso -@SpringBootApplication -public class PigxSsoClientDemoApplication { - - public static void main(String[] args) { - SpringApplication.run(PigxSsoClientDemoApplication.class, args); - } - -} diff --git a/pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/controller/DemoController.java b/pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/controller/DemoController.java deleted file mode 100644 index 8aa57b708..000000000 --- a/pigx-visual/pigx-sso-client-demo/src/main/java/com/pig4cloud/pigx/sso/controller/DemoController.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.sso.controller; - -import org.springframework.security.core.Authentication; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - * @author lengleng - * @date 2018/1/27 demo controller - */ -@RestController -public class DemoController { - - @GetMapping("/user") - public Authentication user(Authentication authentication) { - return authentication; - } - -} diff --git a/pigx-visual/pigx-sso-client-demo/src/main/resources/bootstrap.yml b/pigx-visual/pigx-sso-client-demo/src/main/resources/bootstrap.yml deleted file mode 100644 index 528471596..000000000 --- a/pigx-visual/pigx-sso-client-demo/src/main/resources/bootstrap.yml +++ /dev/null @@ -1,20 +0,0 @@ -#server: -# port: 4040 -# servlet: -# context-path: /sso1 -# -#security: -# oauth2: -# client: -# client-id: pig -# client-secret: pig -# user-authorization-uri: http://localhost:3000/oauth/authorize -# access-token-uri: http://localhost:3000/oauth/token -# scope: server -# resource: -# loadBalanced: true -# token-info-uri: http://localhost:3000/oauth/check_token -# -#spring: -# application: -# name: @artifactId@ diff --git a/pigx-visual/pigx-sso-client-demo/src/main/resources/static/index.html b/pigx-visual/pigx-sso-client-demo/src/main/resources/static/index.html deleted file mode 100644 index 5a67bdc44..000000000 --- a/pigx-visual/pigx-sso-client-demo/src/main/resources/static/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - Title - - - 获取登录信息 - - diff --git a/pigx-visual/pom.xml b/pigx-visual/pom.xml index 80b90cbdf..c60cdbda0 100644 --- a/pigx-visual/pom.xml +++ b/pigx-visual/pom.xml @@ -41,7 +41,6 @@ pigx-pay-platform pigx-monitor pigx-mp-platform - pigx-sso-client-demo pigx-seata-server pigx-sentinel-dashboard pigx-xxl-job-admin