By: sachin wagh user 02 Oct 2020 at 2:48 p.m. CDT

4 Responses
sachin wagh gravatar
I am trying to test Single Sign-On (SSO) with Rocket Chat. I have provided callback URL given by Rocketchat but that URL is not working. After successful authentication on gluu server instead of getting redirected to the Rocketchat's home page I am getting redirected to Gluu Server's home page. I found below entry in the logs. Oct 02 19:31:58 my-server-name rocketchat-server.rocketchat-server[921]: {"line":"403","file":"oauth_server.js","message":"Error in OAuth Server: redirectUrl (https://host:port/home) is not on the same host as the app (https://host/)","time":{"$date":1601667118408},"level":"warn"}

By Ganesh Dutt Sharma staff 03 Oct 2020 at 4:54 a.m. CDT

Ganesh Dutt Sharma gravatar
`Redirect Login URIs` must be same as the `callback url`. Please confirm.

By sachin wagh user 04 Oct 2020 at 12:39 p.m. CDT

sachin wagh gravatar
Yes it is same

By Ganesh Dutt Sharma staff 07 Oct 2020 at 9:17 a.m. CDT

Ganesh Dutt Sharma gravatar
Please provide us all the values you've used. You can replace the name of your domain names with example.com and rocket chat domain name with chat.example.com.

By sachin wagh user 12 Oct 2020 at 1:44 p.m. CDT

sachin wagh gravatar
I am using following callback URL provided by rocket chat https://test.auth.com:553/_oauth/testauth Then I've set same URL in OpenID Connect > Clients > Rocket.Chat > Redirect Login URI's Redirect Login URI is : https://test.auth.com:553/_oauth/testauth I've reffered https://www.gluu.org/docs/gluu-server/4.1/integration/saas/rocketchat/ this documentation. And in our case the gluu server and Rocket chat both are installed on same cloud server. Please let me know if you need some more information.