By: Cage Box user 08 Jan 2020 at 3:28 p.m. CST

4 Responses
Cage Box gravatar
Hi, all. Pardon my inexperience. The error seems a bit basic, but I haven't been able to figure out the issue. I have a website I would like redirected from OpenResty NGINX (using lua-resty-idc) to Gluu for authentication, then to the website (if auth is successful). `OpenResty NGINX --> Gluu (SSO) --> Website` ```` OpenResty NGINX: Gluu (SSO): Website: (https, port 5001) ```` I followed this tutorial here: On my network's DNS server, I set a host override so that my website ( points to my OpenResty NGINX server ( Upon going to, I get the following error: ```` **Error:** "invalid_request_redirect_uri" **Error Description:** "The redirect_uri in the Authorization Request does not match any of the Client's pre-registered redirect_uris." ```` My URL also redirects to: `` Pictures of OpenResty NGINX config, client summary, and sector identifier summary: FYI, when manually going to, page displays just fine (with self signed cert error, of course). Please let me know if there are any particular logs you might need.

By Mohib Zico staff 14 Jan 2020 at 3:35 a.m. CST

Mohib Zico gravatar
I'll try to reproduce your issue locally as soon as I get some time.

By Cage Box user 14 Jan 2020 at 7:15 p.m. CST

Cage Box gravatar
Thanks! Looking forward to it.

By Michael Schwartz staff 17 Jan 2020 at 9:13 a.m. CST

Michael Schwartz gravatar
The redirect URI listed in Gluu must match **exactly**--including any folders and parameters (fragments are stripped). You just have the hostname as the redirect_uri. So Gluu is correctly rejecting the response.

By Cage Box user 19 Jan 2020 at 9:16 a.m. CST

Cage Box gravatar
Michael, thanks! Resolved.