Create a Microsoft account and Azure account
Register an application in Microsoft Entra ID
- Sign in to the Microsoft Entra admin center as at least an Application Developer.
- If you have access to multiple tenants, use the Settings icon in the top menu to switch to the tenant in which you want to register the application.
- From the search bar at the top of the Azure portal, search for App registrations and select it. Then choose New registration. Or from your left navigation tab, navigate to Applications > App registrations then choose New registration.
- Enter a meaningful name for your application, for example “Nango Integration”.
- Under Supported account types, select the appropriate option based on your needs:
- Personal Microsoft accounts only - For apps that only need to access OneDrive Personal accounts.
- Accounts in any organizational directory and personal Microsoft accounts - For multitenant apps that support both organizational and personal Microsoft accounts.
- Leave the Redirect URI section blank for now; we’ll configure it in a later step.
- Click Register to complete the app registration.
Note your application (client) ID
After registration, you’ll be taken to the application’s Overview page. Record the Application (client) ID, which uniquely identifies your application and is used in your application’s code as part of validating security tokens.
Add a redirect URI
- In the left sidebar, select Authentication.
- Under Platform configurations, select Add a platform.
- Select Web as the platform type.
- Enter
https://api.nango.dev/oauth/callback as the Redirect URI.
- Under Implicit grant and hybrid flows, check the boxes for Access tokens and ID tokens if your application needs them.
- Under Advanced settings, set Allow public client flows to No for web applications.
- Click Configure to save your changes.
Create a client secret
- In the left sidebar, select Certificates & secrets.
- Under Client secrets, click New client secret.
- Enter a description for the secret and select an expiration period (6 months, 12 months, 24 months, or custom).
- Click Add.
- Important: Copy the secret value immediately and store it securely. You won’t be able to see it again after you leave this page.
Common Scopes
| Scope | Description |
|---|
OneDrive.Read | Read the signed-in user’s OneDrive files |
OneDrive.ReadWrite | Read and write the signed-in user’s OneDrive files |
OneDrive.AppFolder | Read and write files in the application’s special OneDrive folder |
offline_access | Access to refresh tokens for offline access |
Complete Integration Implementation
For a complete, production-ready implementation of OneDrive Personal integration with Nango, check out the Nango Sample App.The sample app provides:
- Full OAuth flow implementation
- OneDrive file picker integration
- File syncing with webhooks
- File download functionality
- Complete frontend and backend code examples
You can also watch a demo video walkthrough or view the GitHub repository.The sample app is the fastest way to get started with OneDrive Personal integration. It includes all the code you need and can be customized for your specific use case.