By: Cage Box user 19 Sep 2019 at 5:08 p.m. CDT

1 Response
Cage Box gravatar
I'm currently following this guide to integrate a Gluu server with OpenResty (NGINX) server: https://gluu.org/docs/ce/integration/sswebapps/nginx/ I followed the guide, but when I finally go to my OpenResty server (to be directed to Gluu login page), I get the following error: ``` The page isn’t redirecting properly An error occurred during a connection to portal.example.com. This problem can sometimes be caused by disabling or refusing to accept cookies. ``` The full URL that ends up in my browser is: `https://portal.example.com/oxauth/restv1/authorize?response_type=code&client_id=%40!1234.1234.1234.1234!1234!1234.1234!1234!1234.1234.1234.1234&state=f6e940c93251de93a4cbf7c7e2ccebfc&redirect_uri=https%3A%2F%2Fportal.example.com%2Fwelcome&nonce=019d1f4d81bbd42be642c81456ba0ca3&scope=openid%20email%20profile` Rough steps of what I did from scratch following up to the Gluu/OpenResty Guide is as follows: 1. Prepped Ubuntu Server 16.04 for Gluu 3.1.6.sp1 installation per this [guide](https://gluu.org/docs/ce/3.0.1/installation-guide/) 2. Installed Gluu on Ubuntu Server 16.04 3. Created another VM (Ubuntu Server 18.04), then installed OpenResty 1.15.82 (NGINX) and lua-resty-openidc 1.7.2, along with all of its dependencies 4. Generated LetsEncrypt certificates (cert.pem and privkey.pem) and installed them per this [guide](https://gluu.org/docs/ce/admin-guide/certificate/) on Gluu Server You can find my /usr/local/openresty/nginx/conf/nginx.conf here: https://pastebin.com/M8BYZqMF A couple of notes... 1. I can resolve to https://portal.example.com/.well-known/openid-configuration just fine on the OpenResty (NGINX) server 2. I can log into Gluu's admin panel just fine 3. I double and tripled checked to make sure the client_id and client_secret matched what was on the admin panel 4. I did try to use my LetsEncrypt signed certs in my OpenResty (NGINX) config instead of the self-signed, however that made no difference In terms of logs... 1. On OpenResty Server, **/usr/local/openresty/nginx/logs/access.log**...I am able to see all the GET requests (just like the full URL provided above) 2. On OpenResty Server, **/usr/local/openresty/nginx/logs/error.log**...empty log, no matter how many times I refresh the page and get the same redirection error 3. On Gluu Server, I scanned through oxauth_audit.log, oxauth.log, and oxtrust.log with a search for the client ID, however I found none. The only client ID I saw in these logs were of my successful log in via the admin panel (which has a different client ID). I'm hoping the experts here can assist as I've been battling this for the past three days! Please let me know if you require any additional information. Thank you!

By Mohib Zico staff 20 Sep 2019 at 5:59 a.m. CDT

Mohib Zico gravatar
I'll try to reproduce the issue...