1. 修复“登陆”=》“登录”

2. 增加社交平台的绑定与解绑
This commit is contained in:
YunaiV
2021-10-06 09:33:21 +08:00
parent e8e6024a2b
commit 4a23a696f4
56 changed files with 329 additions and 149 deletions

View File

@ -34,7 +34,7 @@ public class YudaoSecurityAutoConfiguration {
private SecurityProperties securityProperties;
/**
* 处理用户未登拦截的切面的 Bean
* 处理用户未登拦截的切面的 Bean
*/
@Bean
public PreAuthenticatedAspect preAuthenticatedAspect() {

View File

@ -131,7 +131,7 @@ public class YudaoWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdap
// 设置每个请求的权限 ①:全局共享规则
httpSecurity.authorizeRequests()
// 登的接口,可匿名访问
// 登的接口,可匿名访问
.antMatchers(api("/login")).anonymous()
// 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/*.html", "/**/*.html", "/**/*.css", "/**/*.js").permitAll()

View File

@ -12,7 +12,7 @@ import java.util.HashSet;
import java.util.Set;
/**
* 登用户信息
* 登用户信息
*
* @author 芋道源码
*/

View File

@ -3,9 +3,9 @@ package cn.iocoder.yudao.framework.security.core.annotations;
import java.lang.annotation.*;
/**
* 声明用户需要登
* 声明用户需要登
*
* 为什么不使用 {@link org.springframework.security.access.prepost.PreAuthorize} 注解,原因是不通过时,抛出的是认证不通过,而不是未登
* 为什么不使用 {@link org.springframework.security.access.prepost.PreAuthorize} 注解,原因是不通过时,抛出的是认证不通过,而不是未登
*
* @author 芋道源码
*/

View File

@ -63,7 +63,7 @@ public class JwtAuthenticationTokenFilter extends OncePerRequestFilter {
}
/**
* 模拟登用户,方便日常开发调试
* 模拟登用户,方便日常开发调试
*
* 注意,在线上环境下,一定要关闭该功能!!!
*

View File

@ -84,7 +84,7 @@ public class SecurityFrameworkUtils {
/**
* 设置当前用户
*
* @param loginUser 登用户
* @param loginUser 登用户
* @param request 请求
*/
public static void setLoginUser(LoginUser loginUser, HttpServletRequest request) {