修改登出回调参数名

This commit is contained in:
zlt
2020-03-14 17:35:37 +08:00
parent afd90eb88d
commit 658f4d651e
2 changed files with 2 additions and 2 deletions
@@ -29,7 +29,7 @@ public class OauthLogoutSuccessHandler implements LogoutSuccessHandler {
@Override
public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException {
String redirectUri = request.getParameter("redirectUri");
String redirectUri = request.getParameter("redirect_uri");
if (StrUtil.isNotEmpty(redirectUri)) {
//重定向指定的地址
redirectStrategy.sendRedirect(request, response, redirectUri);
@@ -219,7 +219,7 @@ layui.define(['config', 'admin', 'layer', 'laytpl', 'element', 'form'], function
accessToken = token.access_token;
}
config.removeToken();
window.location = config.base_server + 'api-uaa/oauth/remove/token?redirectUri=http://127.0.0.1:8066/login.html&access_token='+accessToken;
window.location = config.base_server + 'api-uaa/oauth/remove/token?redirect_uri=http://127.0.0.1:8066/login.html&access_token='+accessToken;
});
});
// 修改密码