I’m in a bit of a weird spot here. We use external user managers to log users into the admin part of eZ. We already managed that with CAS and another custom solution, but now we are trying to do it with Shibboleth. Two weird things here:
- instead of having a similar behaviour, on first arriving on the admin interface once logged, we get an error page with this message “User ‘firstname.lastname@example.org’ doesn’t have user/login permission to SiteAccess ‘admin’”, despite the user having the said right.
- if we reload manually the page, then everything is working perfectly, no more error message. And nothing else is different on the profiler on the user part. We have a working EventListener on the interactive login event, and it does do the same than with the others authentication providers, and then is not called after the first try (as it should).
The only difference is that when we reload the page, we go through a lot more listeners :
First call (bug) :
Second & following calls (ok) :
"Symfony\Component\Security\Http\Firewall\ChannelListener" "Symfony\Component\Security\Http\Firewall\ContextListener" "Symfony\Component\Security\Guard\Firewall\GuardAuthenticationListener" "Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener" "eZ\Publish\Core\REST\Server\Security\RestAuthenticator" "Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener" "Symfony\Component\Security\Http\Firewall\LogoutListener" "Symfony\Component\Security\Http\Firewall\AccessListener"
What is happening here? It feels like there is a priority problem on the authentication part that tests the eZ credentials before the login, but what happens?
Has anyone had the same problem?