xieb
2023-08-10 a5c00a1316fe9922ff87bf07a5e42c238a07d070
单点登出
4 files modified
10 ■■■■■ changed files
skjcmanager/skjcmanager-auth/src/main/java/cn/gistack/auth/endpoint/BladeTokenEndPoint.java 6 ●●●● patch | view | raw | blame | history
skjcmanager/skjcmanager-auth/src/main/java/cn/gistack/auth/props/OAuthProperties.java 2 ●●●●● patch | view | raw | blame | history
skjcmanager/skjcmanager-auth/src/main/resources/application-dev.yml 1 ●●●● patch | view | raw | blame | history
skjcmanager/skjcmanager-auth/src/main/resources/application-prod.yml 1 ●●●● patch | view | raw | blame | history
skjcmanager/skjcmanager-auth/src/main/java/cn/gistack/auth/endpoint/BladeTokenEndPoint.java
@@ -103,7 +103,11 @@
    @SneakyThrows
    @GetMapping("/oauth/tokenLoginUI")
    public void tokenLoginUI(HttpServletResponse response, String code) {
        response.sendRedirect(oauthProperties.getRedirectWebUri() + "?code=" + code);
        if (StringUtil.isBlank(code)) {
            response.sendRedirect(oauthProperties.getRedirectExitUri());
        } else {
            response.sendRedirect(oauthProperties.getRedirectWebUri() + "?code=" + code);
        }
    }
    @GetMapping("/oauth/tokenLogin")
skjcmanager/skjcmanager-auth/src/main/java/cn/gistack/auth/props/OAuthProperties.java
@@ -33,4 +33,6 @@
    private String redirectWebUri;
    private String redirectExitUri;
}
skjcmanager/skjcmanager-auth/src/main/resources/application-dev.yml
@@ -26,3 +26,4 @@
    profile-url: ${oauth.config.server-url-prefix}/api-auth/inspur/cas/oauth2.0/profile
    redirect-uri: http://10.10.3.99:32182/api/blade-auth/oauth/tokenLoginUI
    redirect-web-uri: http://192.168.1.198:1888/business/#/tokenlogin
    redirect-exit-uri: http://10.10.3.99:32182/#/index
skjcmanager/skjcmanager-auth/src/main/resources/application-prod.yml
@@ -26,3 +26,4 @@
    profile-url: ${oauth.config.server-url-prefix}/api-auth/inspur/cas/oauth2.0/profile
    redirect-uri: http://10.10.3.99:32182/api/blade-auth/oauth/tokenLoginUI
    redirect-web-uri: http://10.10.3.99:32182/#/tokenlogin
    redirect-exit-uri: http://10.10.3.99:32182/#/index