What's the difference between the Credentials API and MSAL API?

underwood 20 Reputation points
2025-01-14T01:29:59.91+00:00

I wrote two programs that used the MSAL API and Credentials API respectively. However,the Credentials API can upload files to onedrive normally,while the MSAL API can‘t upload files to the old account of onedrive. What's the difference between two API?

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,287 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,335 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiajing Hua-MFST 13,940 Reputation points Microsoft Vendor
    2025-01-14T08:28:26.95+00:00

    Hi @underwood

    Based on my knowledge, MSAL API enforce accounts to be authenticated with Azure AD. If the old account has not been migrated to Azure AD, it may cause access failure.

    Older OneDrive accounts are more likely to be supported Credentials API, as it may leverage pre-existing legacy authentication mechanisms or cached credentials.

    As your issue is related to API. It is recommended that you post the thread to OneDrive for Developer forum for more comprehensive information:

    https://techcommunity.microsoft.com/category/onedriveforbusiness/discussions/onedrivedeveloper

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.

    Thank you for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.