How to integrate the login auth in reactjs

Parneet Kaur 0 Reputation points
2024-05-29T08:38:19.4066667+00:00

Hello Support Team,

I trust this message finds you well. I'm currently utilizing the OneDrive feature for my website and I'm looking to integrate user authentication into my ReactJS application. However, I'm encountering a requirement for a client ID for authentication. I'm wondering if there's a way to authenticate without needing a client ID.

Ideally, I envision a scenario where clicking on a custom login button triggers the OneDrive login screen to appear on my website. From there, users can input their information and create the app within OneDrive, which would generate the necessary credentials. Subsequently, I would like to call an API to retrieve these credentials and return them to my application.

Is there a method to authenticate without a client ID? Additionally, are there APIs available to access the API keys and tokens for OneDrive that could be utilized within my application? Lastly, is there a way to redirect the Microsoft portal back to my website after successfully creating the credentials manually?

Your prompt assistance in this matter would be greatly appreciated as it's urgent.

Best Regards,
Parneet

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,794 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 23,906 Reputation points Microsoft Vendor
    2024-05-30T01:16:39.7233333+00:00

    Hi,

    I suggest you post this thread to OneDrive for Developer forum:

    https://techcommunity.microsoft.com/t5/onedrive-developer/bd-p/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 response is helpful, please click "Accept Answer" and upvote it.

    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.