An external user/identity that is member of "administrators" group does not have access to all the resources (403 forbidden)
Hi:
I'm very frustrated. I've spent many days trying to implement authentication using an external provider.
I've created my own AuthenticationHandler, a LoginModule (using Oak), a LoginModuleFactory, an External Identity Provider, and created all the required configurations (a default Synchronizer and external provider are linked to my login module)
I have create a login-page, a logout servlet, and my others pages in general. I'm able to request my home page, it redirect me to login-page when I'm not authenticated, and after log in I can see the home-page again. I'm able to log out too, being redirected to login-page.
The External User that I'm using to log in is correctly added in the right group (administrators for test purposes).
The user is perfectly located in /home/"mypath"/:
The profile is correctly created and imported:
The ONLY PROBLEM is that the Home-page does has access to any resource outside of /content/myAppName.
All its HTML content is shown:
But I'm receiving 403 (Forbidden) for every other resource:
The AuthenticationHandler.extractCredentials implementation is saving the credential just in the session (no cookies so far).
Something like this:
private void setUserInSession(String user, HttpServletRequest request) {
request.getSession(true).setAttribute(USER_KEY, user);
}
Is there any bug with external users?
I have no idea where else to seek.