diff --git a/gateway/.idea/workspace.xml b/gateway/.idea/workspace.xml index 267654b..c7b02d0 100644 --- a/gateway/.idea/workspace.xml +++ b/gateway/.idea/workspace.xml @@ -5,18 +5,7 @@ - - - - - - - - - - - - { + "keyToString": { + "Maven.Unknown [clean].executor": "Run", + "Maven.gateway [clean].executor": "Run", + "Maven.gateway [package].executor": "Run", + "RequestMappingsPanelOrder0": "0", + "RequestMappingsPanelOrder1": "1", + "RequestMappingsPanelWidth0": "75", + "RequestMappingsPanelWidth1": "75", + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.git.unshallow": "true", + "Spring Boot.GatewayApplication.executor": "Debug", + "git-widget-placeholder": "main", + "kotlin-language-version-configured": "true", + "last_opened_file_path": "/Users/sunpeng/workspace/remote/oauth2/gateway", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "project.structure.last.edited": "SDK", + "project.structure.proportion": "0.0", + "project.structure.side.proportion": "0.0", + "settings.editor.selected.configurable": "MavenSettings", + "vue.rearranger.settings.migration": "true" } -}]]> +} diff --git a/gateway/target/classes/application.properties b/gateway/target/classes/application.properties new file mode 100644 index 0000000..83f1639 --- /dev/null +++ b/gateway/target/classes/application.properties @@ -0,0 +1,15 @@ +server.port=8080 + +spring.cloud.gateway.routes[0].id=resource-server-a +spring.cloud.gateway.routes[0].uri=http://localhost:8081 +spring.cloud.gateway.routes[0].predicates[0]=Path=/a/** +spring.cloud.gateway.routes[0].filters[0]=RewritePath=/a/(?.*), /api/${segment} +spring.cloud.gateway.routes[0].filters[1]=TokenRelay + +spring.cloud.gateway.routes[1].id=resource-server-b +spring.cloud.gateway.routes[1].uri=http://localhost:8082 +spring.cloud.gateway.routes[1].predicates[0]=Path=/b/** +spring.cloud.gateway.routes[1].filters[0]=RewritePath=/b/(?.*), /api/${segment} +spring.cloud.gateway.routes[1].filters[1]=TokenRelay + +spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://localhost:9000/oauth2/jwks \ No newline at end of file diff --git a/gateway/target/classes/com/tuoheng/gateway/GatewayApplication.class b/gateway/target/classes/com/tuoheng/gateway/GatewayApplication.class new file mode 100644 index 0000000..0e4fc1f Binary files /dev/null and b/gateway/target/classes/com/tuoheng/gateway/GatewayApplication.class differ diff --git a/gateway/target/classes/com/tuoheng/gateway/config/SecurityConfig.class b/gateway/target/classes/com/tuoheng/gateway/config/SecurityConfig.class new file mode 100644 index 0000000..1ce7696 Binary files /dev/null and b/gateway/target/classes/com/tuoheng/gateway/config/SecurityConfig.class differ diff --git a/oidc/pom.xml b/oidc/pom.xml index 669e934..cfc5a3f 100644 --- a/oidc/pom.xml +++ b/oidc/pom.xml @@ -30,10 +30,6 @@ 17 - - org.springframework.boot - spring-boot-starter-data-jpa - org.springframework.boot spring-boot-starter-oauth2-authorization-server diff --git a/resourceservice/target/classes/application.properties b/resourceservice/target/classes/application.properties new file mode 100644 index 0000000..bafddce --- /dev/null +++ b/resourceservice/target/classes/application.properties @@ -0,0 +1 @@ +server.port=8081 \ No newline at end of file diff --git a/resourceservice/target/classes/com/tuoheng/resourceservice/HelloController.class b/resourceservice/target/classes/com/tuoheng/resourceservice/HelloController.class new file mode 100644 index 0000000..f5ffdcf Binary files /dev/null and b/resourceservice/target/classes/com/tuoheng/resourceservice/HelloController.class differ diff --git a/resourceservice/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class b/resourceservice/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class new file mode 100644 index 0000000..c558287 Binary files /dev/null and b/resourceservice/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class differ diff --git a/resourceserviceb/target/classes/application.properties b/resourceserviceb/target/classes/application.properties new file mode 100644 index 0000000..8d51d0c --- /dev/null +++ b/resourceserviceb/target/classes/application.properties @@ -0,0 +1 @@ +server.port=8082 \ No newline at end of file diff --git a/resourceserviceb/target/classes/com/tuoheng/resourceservice/HelloController.class b/resourceserviceb/target/classes/com/tuoheng/resourceservice/HelloController.class new file mode 100644 index 0000000..59c413a Binary files /dev/null and b/resourceserviceb/target/classes/com/tuoheng/resourceservice/HelloController.class differ diff --git a/resourceserviceb/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class b/resourceserviceb/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class new file mode 100644 index 0000000..022f4b0 Binary files /dev/null and b/resourceserviceb/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class differ