Change Authorities/Roles of Authenticated User from SSO in Spring OAuth2 Client
问题 I am trying to authenticate a user from facebook and store it's username and provide custom permission to subset of users who will be admin for my application. My question is, How do I provide custom roles like "Admin" to the authenticated and authorize it in Oauth2Client. @Configuration class WebSecurityConfiguration extends GlobalAuthenticationConfigurerAdapter { @Autowired UserRepository userRepository; @Override public void init(AuthenticationManagerBuilder auth) throws Exception { auth