Open
Description
ZhangLiangliang (Migrated from SEC-2364) said:
A commons requirment is : Admin A update user B's authorities while user B has logged in,
and require user B could apply his new new authorities immediately without relogin.
My first thought is implementing custom UserDetailsService and UserDetails.
Make every call UserDetails#getAuthorities() is call DAO.
But whitout custom AuthenticationProvider this is could not reached.
Because AuthenticationProviders SEC provideed ( DaoAuthenticationProvider、CasAuthenticationProvider etc)
will copy authorities form UserDetails, apply AuthoritiesMapper and store them in Authentication object,
this will make authorities is cached.
Should/Could this be improved?