Compare commits
No commits in common. "efaba0980dc2dc43c8ad4ae568f57cc4b3f3f4ce" and "0d3d6f61ecf34a5b5537cc41aff0f109f348e0e5" have entirely different histories.
efaba0980d
...
0d3d6f61ec
|
@ -237,9 +237,9 @@ public class Oauth2Filter extends AuthenticatingFilter {
|
|||
Result<Map> result = sysUserTokenService.createToken(sysUserEntity.getId());
|
||||
Object token = result.getData().get(Constant.TOKEN_HEADER);
|
||||
String currentToken = (String) token;
|
||||
// Cookie cookie = new Cookie(Constant.TOKEN_HEADER, currentToken);
|
||||
// cookie.setPath("/");
|
||||
// response.addCookie(cookie);
|
||||
Cookie cookie = new Cookie(Constant.TOKEN_HEADER, currentToken);
|
||||
cookie.setPath("/");
|
||||
response.addCookie(cookie);
|
||||
response.addHeader(Constant.TOKEN_HEADER, currentToken);
|
||||
//回调不涉及其他页面回调,先写死回调首页
|
||||
String removeCreditParame = "http://" + urlBuilder.getHost() + ":" + urlBuilder.getPort() + "/#/home";
|
||||
|
@ -267,9 +267,9 @@ public class Oauth2Filter extends AuthenticatingFilter {
|
|||
Result<Map> result = sysUserTokenService.createToken(sysUserEntity.getId());
|
||||
Object token = result.getData().get(Constant.TOKEN_HEADER);
|
||||
String currentToken = (String) token;
|
||||
// Cookie cookie = new Cookie(Constant.TOKEN_HEADER, currentToken);
|
||||
// cookie.setPath("/");
|
||||
// response.addCookie(cookie);
|
||||
Cookie cookie = new Cookie(Constant.TOKEN_HEADER, currentToken);
|
||||
cookie.setPath("/");
|
||||
response.addCookie(cookie);
|
||||
response.addHeader(Constant.TOKEN_HEADER, currentToken);
|
||||
//去掉凭证参数
|
||||
String removeCreditParame = ssoValidator.removeCreditParame(requestUri);
|
||||
|
|
Loading…
Reference in New Issue