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