I have been googling all week to see if I find some modicum of explanation how to do this, with the Custom Oauth in Rocket chat, but there are no documentation written for this:
https://rocket.chat/docs/contributing/documentation/missing-and-outdated-list/index.html#custom-oauth
You would think, rocket-chat would add this documentation since they support it…
This is what I have done so far… (Using a test)
I went ahead and bought the WP O-Auth Plugin from https://wp-oauth.com/ and I configured my server… and generated the Client ID and Secret ID that I am going to use in Rocket.Chat:
I went to Rocket Chat, and in the Oauth section I added a new Custom Oauth
On this line: When setting up your OAuth Provider, you'll have to inform a Callback URL. Use https://chat.phideltagamma.net/_oauth/testauth
<- do I have to add this in my Redirect URl above?
I fill out the Custom Oauth template in Rocket Chat, like you see here:
I then save my work and load the site:
If I manually enter my credentials I can log in successfully, no issues there. But If I try to click the CLICK HERE Button, I get redirected to: https://chat.mydomainhere.net/oauth/error/404
I have added the client ID and the Secret to the custom Oauth, and I am getting an error when you click on the area for the SSO, it sends me to: https://chat.phideltagamma.net/oauth/error/404 and it still looks like the login screen above…
I don’t have anywhere in Rocket Chat, that URL configured… So I don’t know why it’s sending me there…
I dont understand why this is failing… Can someone explain what I am doing wrong?