合并 master 最新代码
This commit is contained in:
parent
5f80333232
commit
23888c5a49
@ -87,7 +87,8 @@ public class DefaultSignUpUrlAuthenticationSuccessHandler extends AbstractSignUp
|
||||
}
|
||||
|
||||
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=";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -169,7 +169,8 @@ public class YudaoWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdap
|
||||
// 设置每个请求的权限 ②:每个项目的自定义规则
|
||||
.and().authorizeRequests(authorizeRequestsCustomizer)
|
||||
// 设置每个请求的权限 ③:兜底规则,必须认证
|
||||
.authorizeRequests().anyRequest().authenticated();
|
||||
// .authorizeRequests().anyRequest().authenticated()
|
||||
;
|
||||
// 添加 JWT Filter
|
||||
httpSecurity.addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user