From 205105fd4718a604169e487e760c73e45a984284 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 5 Oct 2020 14:18:09 +0200 Subject: [PATCH] Follow up - ba0111c4a4c54c589f8fe4c1ffafcb3d76a929d1 - Fixes #3230 - Hybrid Office-Accounts can't authenticate via Office 365 login. --- spec/requests/o_auth_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/o_auth_spec.rb b/spec/requests/o_auth_spec.rb index bab1c6a3b..903a72048 100644 --- a/spec/requests/o_auth_spec.rb +++ b/spec/requests/o_auth_spec.rb @@ -9,7 +9,7 @@ RSpec.describe 'OAuth', type: :request do expect(response).to have_http_status(:found) expect(response.body).to include('https://login.microsoftonline.com/common/oauth2/v2.0/authorize') expect(response.body).to include('redirect_uri=http%3A%2F%2Fzammad.example.com%2Fauth%2Fmicrosoft_office365%2Fcallback') - expect(response.body).to include('scope=openid+email+profile') + expect(response.body).to include('scope=openid+User.Read+Contacts.Read') expect(response.body).to include('response_type=code') end