合并 master 最新代码

This commit is contained in:
YunaiV 2021-09-28 09:55:04 +08:00
parent 5f80333232
commit 23888c5a49
2 changed files with 4 additions and 2 deletions

View File

@ -87,7 +87,8 @@ public class DefaultSignUpUrlAuthenticationSuccessHandler extends AbstractSignUp
} }
private String getUrl() { private String getUrl() {
return "http://localhost/oauthLogin/gitee?token="; // return "http://localhost/oauthLogin/gitee?token=";
return "http://127.0.0.1:1024/oauthLogin/gitee?token=";
} }
/** /**

View File

@ -169,7 +169,8 @@ public class YudaoWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdap
// 设置每个请求的权限 每个项目的自定义规则 // 设置每个请求的权限 每个项目的自定义规则
.and().authorizeRequests(authorizeRequestsCustomizer) .and().authorizeRequests(authorizeRequestsCustomizer)
// 设置每个请求的权限 兜底规则必须认证 // 设置每个请求的权限 兜底规则必须认证
.authorizeRequests().anyRequest().authenticated(); // .authorizeRequests().anyRequest().authenticated()
;
// 添加 JWT Filter // 添加 JWT Filter
httpSecurity.addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class); httpSecurity.addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class);