コード例 #1
0
 @Override
 public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {
   oauthServer
       .tokenKeyAccess("isAnonymous() || hasAuthority('" + AuthoritiesConstants.USER + "')")
       .checkTokenAccess("hasAuthority('" + AuthoritiesConstants.USER + "')");
 }
コード例 #2
0
 @Override
 public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {
   oauthServer.tokenKeyAccess("permitAll()").checkTokenAccess("isAuthenticated()");
 }