Follow up - ba0111c4a4 - Fixes #3230 - Hybrid Office-Accounts can't authenticate via Office 365 login.

This commit is contained in:
Thorsten Eckel 2020-10-05 14:18:09 +02:00
parent ba0111c4a4
commit 205105fd47

View file

@ -9,7 +9,7 @@ RSpec.describe 'OAuth', type: :request do
expect(response).to have_http_status(:found) 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('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('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') expect(response.body).to include('response_type=code')
end end