Step by Step Guide to Setup Login into Rocket Chat with WordPress



If you want to login to your Rocket.Chat site using your WordPress username and password, you can simply login into Rocket Chat with WordPress using our plugin. Once you configure the Rocket.Chat with WP Login with Rocket Chat plugin, you can login to your Rocket.Chat application using WP credentials. It also allows you to send custom user attributes to your Rocket.Chat site as per your requirements. To know more about other features we provide in WP Login with Rocket Chat plugin, you can click here.

Please follow the steps given below to configure your Rocket.Chat site with WordPress and setup the Single Sign On.



Guide to Configure WP Login with Rocket Chat with Rocket.Chat as OAuth Client :

  • Go to https://{Your-Rocket.Chat-Domain}/admin/OAuth and sign in/login.
  • Click on Add custom oauth to create a new OAuth Application(refer to image below).
  • Rocket.Chat 1
  • Enter a Name for the Rocket.Chat Application and Click on Send to create a new Application.
  • Rocket.Chat 2
  • It will be shown the Application Configuration tab.
  • Configure your Rocket.Chat Application as shown below:
  • Rocket.Chat 3
  • To configure Rocket.Chat with ID, Secret, Scope, Endpoints, etc. We will need to configure the WP Login with Rocket Chat first.

  • Note Down the callback URL as shown above.
  • Follow the steps given below to configure your OAuth Server:
  • 1) Activate the plugin.
    2) Enter the Callback/Redirect URI provided in Rocket.Chat application provided at the top of the Rocket Chat application(as shown above)and click on Save Client button.

    Rocket.Chat 2
  • Back in Rocket.Chat OAuth Configuration, add the information as following:
  • Token Path http://{your-wordpress-domain}/wp-json/moserver/token
    Identity Path http://{your-wordpress-domain}/wp-json/moserver/resource
    Authorize Path http://{your-wordpress-domain}/wp-json/moserver/authorize
    Scope profile email openid
    Id Client ID
    Secret Client Secret
  • You can generate new Client ID and Client Secret by clicking on Regenerate button.
  • Rocket.Chat 2
  • You have successfully configured Rocket.Chat with miniOrange WordPress OAuth Server for SSO.
  • You can download OAuth Server plugin using the following link.
  • WordPress Login with Rocket Chat ( OAuth Provider )

If you are facing any difficulty please mail us on info@miniorange.com.