[keycloak-user] Keycloak/Gatekeeper "You don't have authorization to view this page" after login

Nick Powers sshscp at gmail.com
Mon Jul 15 18:34:54 EDT 2019


Hello,

I have installed Keycloak and Gatekeeper with hopes that i can use it to
authenticate for my web application, which is written in PHP.  I am getting
redirected to Keycloak by Gatekeeper and I am able to register for an
account once there. But, as soon as I finish creating the account, or now
when I return to my domain I get a 403 error message "You don't have
authorization to view this page."

The URL that I am landing on is
https://commentcontext.com/oauth/callback?state=3e810acf-ff2d-448c-9165-075a96d43e79&session_state=b9e34566-65f1-4ee5-a280-5c23531975ea&code=aa539a0b-8b57-4fd5-8c1d-5a8ea19b8242.b9e34566-65f1-4ee5-a280-5c23531975ea.52b73740-2225-4a63-9d32-a1618331b24f

Does anyone have any idea why I am getting the 403 error message? I added a
new realm and a client in that realm but I didn't add any roles or anything
else to it.  Also, I have yet to write any code for my webapp yet.  I just
have an index.php in / that dumps the headers and phpinfo().

Any help would be greatly appreciated!  I am happy to provide any
additional info that might help you determine the problem.  Just let me
know what you need.

Thanks,

Nick


More information about the keycloak-user mailing list