diff --git a/framework/gateway/src/main/java/io/metersphere/gateway/controller/LoginController.java b/framework/gateway/src/main/java/io/metersphere/gateway/controller/LoginController.java index 1fb1095054..01482aa3d2 100644 --- a/framework/gateway/src/main/java/io/metersphere/gateway/controller/LoginController.java +++ b/framework/gateway/src/main/java/io/metersphere/gateway/controller/LoginController.java @@ -119,6 +119,10 @@ public class LoginController { return Mono.just(ResultHolder.success(authSourceService.listAllEnable())); } + @GetMapping("authsource/{authId}") + public Mono getAuthSource(@PathVariable("authId") String authId) { + return Mono.just(ResultHolder.success(authSourceService.getAuthSource(authId))); + } @GetMapping(value = "/services") public Mono getServices() { diff --git a/framework/sdk-parent/frontend/src/api/user.js b/framework/sdk-parent/frontend/src/api/user.js index 19bf3f9688..f183d71550 100644 --- a/framework/sdk-parent/frontend/src/api/user.js +++ b/framework/sdk-parent/frontend/src/api/user.js @@ -57,6 +57,10 @@ export function getAuthSources() { return get('/authsource/list/allenable') } +export function getAuthSource(id) { + return get('/authsource/' + id) +} + export function getProjectMemberOption() { return get('/user/project/member/option'); } diff --git a/framework/sdk-parent/frontend/src/business/login/index.vue b/framework/sdk-parent/frontend/src/business/login/index.vue index 62732604f2..725a8d172a 100644 --- a/framework/sdk-parent/frontend/src/business/login/index.vue +++ b/framework/sdk-parent/frontend/src/business/login/index.vue @@ -59,9 +59,17 @@