Bug 477003 - OneDrive Oauth not working
Summary: OneDrive Oauth not working
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-OneDrive (show other bugs)
Version: 8.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-14 18:10 UTC by aaron@garcia.ltd
Modified: 2023-11-14 21:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screen shots showing my one drive account all working and it not working (226.55 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-11-14 18:10 UTC, aaron@garcia.ltd
Details

Note You need to log in before you can comment on or make changes to this bug.
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