Bug 477003

Summary: OneDrive Oauth not working
Product: [Applications] digikam Reporter: aaron <aaron>
Component: Plugin-WebService-OneDriveAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: normal CC: aaron, metzpinguin
Priority: NOR    
Version First Reported In: 8.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screen shots showing my one drive account all working and it not working

Description aaron@garcia.ltd 2023-11-14 18:10:07 UTC
Created attachment 163158 [details]
screen shots showing my one drive account all working and it not working

SUMMARY
***
Connection to my Onedrive does not work,

I get told at the sign-in page in Red - "That Microsoft doesn't exist. Enter a different account  or get a new one"

***


STEPS TO REPRODUCE

1. Create a Azure active directory domain, e.g. "mydomain.com" 
2. Create a user account e.g. myname@mydomain.com 
3. check one drive works with myname@mydomain.com
4. open digikam and attempt to use the Export function with myname@mydomain.com 
- Fails.
Comment 1 Maik Qualmann 2023-11-14 19:49:34 UTC
A test here with a Microsoft account shows no problems with digiKam-8.1.0.
Can you log in to https://login.live.com/ using a desktop browser?

Maik
Comment 2 aaron@garcia.ltd 2023-11-14 21:27:45 UTC
my investigation shows its because I use one drive for business (as I have work account with 5TB of storage), 

your connector looks to be designed to only work with one drive domestic (non-work accounts) e.g. person@hotmail.com or person@outlook.com

I think the one drive IDP / API different when connected to a work account.

https://powerusers.microsoft.com/t5/Using-Flows/MS-Account-Doesn-t-Exist-when-signing-into-OneDrive/td-p/393619
https://www.multcloud.com/tutorials/onedrive-vs-onedrive-for-business-5555-rc.html