使用spring security jwt 、spring security oauth2权限控制遇到的坑记录
作者:互联网
权限控制时报
Access is denied (user is not anonymous); delegating to AccessDeniedHandler
或者
AccessDeniedException : Access is denied
那么请确保最终传入
方法为:
UsernamePasswordAuthenticationToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities)
authorities 值为以下格式
标签:oauth2,spring,Object,Access,denied,authorities,security 来源: https://www.cnblogs.com/Mr-lin66/p/13121179.html