Configure Azure AD for Rocket.Chat

Go to Administrator --> OAuth


Field Value
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
Id <your_app_id>
Secret <your_app_secret>
Login Style Popup
Button Text Login with Microsoft Azure
Button Text Color #FFFFFF
Button Color #13679A
Username field <leave blank>
Merge users <checked>