Commit 23888c5a49fb961e756750818bbb74e1bde11d22
1 parent
5f803332
合并 master 最新代码
Showing
2 changed files
with
4 additions
and
2 deletions
yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/system/convert/auth/handler/DefaultSignUpUrlAuthenticationSuccessHandler.java
| ... | ... | @@ -87,7 +87,8 @@ public class DefaultSignUpUrlAuthenticationSuccessHandler extends AbstractSignUp |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | private String getUrl() { |
| 90 | - return "http://localhost/oauthLogin/gitee?token="; | |
| 90 | +// return "http://localhost/oauthLogin/gitee?token="; | |
| 91 | + return "http://127.0.0.1:1024/oauthLogin/gitee?token="; | |
| 91 | 92 | } |
| 92 | 93 | |
| 93 | 94 | /** | ... | ... |
yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/config/YudaoWebSecurityConfigurerAdapter.java
| ... | ... | @@ -169,7 +169,8 @@ public class YudaoWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdap |
| 169 | 169 | // 设置每个请求的权限 ②:每个项目的自定义规则 |
| 170 | 170 | .and().authorizeRequests(authorizeRequestsCustomizer) |
| 171 | 171 | // 设置每个请求的权限 ③:兜底规则,必须认证 |
| 172 | - .authorizeRequests().anyRequest().authenticated(); | |
| 172 | +// .authorizeRequests().anyRequest().authenticated() | |
| 173 | + ; | |
| 173 | 174 | // 添加 JWT Filter |
| 174 | 175 | httpSecurity.addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class); |
| 175 | 176 | ... | ... |