Authenticate against Azure AD/OAuth

Description

Unable to get authentication using Azure AD and RocketChat OAuth.

Does anyone have a good guide to point to?

Server Setup Information

  • Version of Rocket.Chat Server: 3.10.5
  • Operating System: Redhat Enterprise 8
  • Deployment Method: SNAP
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v12.18.4
  • MongoDB Version: 3.6.14
  • Proxy: nginx
  • Firewalls involved:

Any additional Information

my current config

URL: https://login.microsoftonline.com/common/
Token Path: /oauth2/token
Token Sent Via: Header
Identity Token Sent Via: Same as “Token Sent Via”
Identity Path: /openid/userinfo
Authorize Path: /oauth2/authorize
Scope:openid
Param Name for access token: access_token
id:azure app id
secret: app secret
login style: popup

Hello,

Never found a good guide but did manage to get the environment up and functioning. Used Is RocketChat not compatible with OAuth2 and Office365? · Issue #6809 · RocketChat/Rocket.Chat · GitHub as a base point to start.

The current config you have above is identical - With the caveat that we point the logon URL direct to the tenant: https://login.microsoftonline.com/{tenant id}/