I have configured a custom Filter that grants a spring authority for every URL other than /login :
public class TokenFilter impleme
As others have said 403 means that user is logged in but doesn't have the right permission to view the resource; I would check the following:
@Secured( {"ROLE_myAuthority"} ) new SimpleGrantedAuthority("ROLE_myAuthority"); Filter is been injected correctly
Authentication auth = new UsernamePasswordAuthenticationToken(username, authentication.getCredentials(), authorities);
Collection extends GrantedAuthority> auths = auth.getAuthorities();`
Iterator authsIterator = auths.iterator();
while (authsIterator.hasNext()) {
SimpleGrantedAuthority sga = (SimpleGrantedAuthority) authsIterator.next();
sga.getAuthority();
// ...
}