Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Can't configure RocketChat with SAML and Azure Ad or OAUTH with Office 365

Open basitmohammad opened this issue 9 years ago • 1 comments

I can't seem to configure my RocketChat to work with SAML or OAUTH. Is there any documentation that could help me to know exactly what to configure on both ends??

Rocket.Chat Version: 0.54.2 Running Instances: 1 DB Replicaset OpLog: Disabled Node Version: v4.5.0

basitmohammad avatar Apr 11 '17 20:04 basitmohammad

Update: This is the error I get when trying to log in with OAuth. What am I missing to make this work?

Exception while invoking method 'login' Error: Failed to complete OAuth handshake with office365 at https://login.microsoftonline.com/oauth/token. failed [404] at CustomOAuth.getAccessToken (/opt/Rocket.Chat/programs/server/packages/rocketchat_custom-oauth.js:151:17) at Object.handleOauthRequest (/opt/Rocket.Chat/programs/server/packages/rocketchat_custom-oauth.js:212:28) at OAuth._requestHandlers.(anonymous function) (packages/oauth2.js:27:31) at middleware (packages/oauth.js:203:5) at packages/oauth.js:176:5

basitmohammad avatar Apr 12 '17 16:04 basitmohammad