https://bugs.kde.org/show_bug.cgi?id=450321
Bug ID: 450321 Summary: KOrganizer: EWS broken on office365.com using OAuth2 Product: kontact Version: 5.14.2 Platform: openSUSE RPMs OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: calendar Assignee: kdepim-bugs@kde.org Reporter: mac-w...@sjtu.edu.cn Target Milestone: --- 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 -- You are receiving this mail because: You are the assignee for the bug.