Bug 450321 - KOrganizer: EWS broken on office365.com using OAuth2
Summary: KOrganizer: EWS broken on office365.com using OAuth2
Status: REPORTED
Alias: None
Product: korganizer
Classification: Applications
Component: groupware (show other bugs)
Version: 5.14.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-15 17:15 UTC by mac-wang
Modified: 2022-05-25 16:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mac-wang 2022-02-15 17:15:38 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
The EWS add-on is broken on office365.com using OAuth2

STEPS TO REPRODUCE
1. Create a calendar account of type "EWS" in KOrganizer
2. Enter an outlook.com mail address, select OAuth2 authentication, and provide office365.com as the EWS URL
3. Click "Try connect" button and provide my account credentials

OBSERVED RESULT
On first login attempt, login.live.com complained:
"AADSTS165000: Invalid Request: The user session context is missing. One or more of the user context values (cookies; form fields; headers) were not supplied, every request must include these values and maintain them across a complete single user flow. The request did not return all of the form fields. Failure Reasons:[Missing session context cookie;Token is invalid;]", and login failed with KOrganizer reporting "Failed to process EWS request HTTP 401".
On a subsequent second attempt, only KOrganizer reported HTTP 401.
Closed KOrganizer and tried again, the above situation reappears.

EXPECTED RESULT
I should have my calendar set up and working

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE Leap 15.3/Linux 5.3.18-150300.59.49-default #1 SMP Mon Feb 7 14:40:20 UTC 2022 (77d9d02) x86_64
(available in About System)
KDE Plasma Version: 5.18.6
KDE Frameworks Version: 5.76.0
Qt Version: 5.12.7

ADDITIONAL INFORMATION
Comment 1 zabirraihan6 2022-02-16 07:03:07 UTC
Can only successfully add account by manually inputting email and password (or app password if you use 2fa) and also tryng to connect by manually putting in the office365 exchange URL.

But even so, task lists do show up but they are empty inside. 

Cannot immediately confirm if calendar data loads or not.