Microsoft OneDrive
Productivity Installation + User OAuth

Microsoft OneDrive

Access OneDrive files and folders through Azure AD OAuth for cloud storage integration.

Auth Model

Installation + User OAuth

Dual-credential model. An App is first installed into an organization or workspace (yielding an installation credential), then individual users authorize within that installation context (yielding user credentials). Authpipe manages both lifecycles.

Connection Flow

1
Admin installs App
2
Installation credential stored
3
Users authorize
4
User credentials stored
@authpipe/node
// Get the bot/app token (installation-level)
const { credential: botToken } = await authpipe.getCredential({
  provider: 'microsoft-onedrive',
  tenantId: 'org_acme',
  credentialFor: 'installation',
});

// Get a user-level token
const { credential } = await authpipe.getCredential({
  provider: 'microsoft-onedrive',
  tenantId: 'org_acme',
  userId: 'user_123',
  credentialFor: 'user',
});
// Both credentials are always valid — Authpipe handles refresh
@authpipe/react
// Install the App into a workspace
<InstallButton
  provider="microsoft-onedrive"
  onInstall={(inst) => console.log('Installed!', inst)}
/>

Available Scopes

Permissions you can request when connecting to Microsoft OneDrive.

User.Read

Sign in and read user profile

Files.Read

Read the user's files

Files.Read.All

Read all files the user can access (including shared files)

Files.ReadWrite

Read and write the user's files

Files.ReadWrite.All

Read and write all files the user can access

Sites.Read.All

Read SharePoint site collections and items

Sites.ReadWrite.All

Read and write SharePoint site collections and items

offline_access

Maintain access to data the user has granted access to via refresh tokens

User.Read

Sign in and read user profile

Files.Read

Read the user's files

Files.Read.All

Read all files the user can access (including shared files)

Files.ReadWrite

Read and write the user's files

Files.ReadWrite.All

Read and write all files the user can access

Sites.Read.All

Read SharePoint site collections and items

Sites.ReadWrite.All

Read and write SharePoint site collections and items

offline_access

Maintain access to data the user has granted access to via refresh tokens

What Authpipe handles for Microsoft OneDrive

OAuth Orchestration

PKCE, state validation, callback handling, and provider-specific quirks — all automatic.

Encrypted Vault

AES-256-GCM encryption with per-tenant key isolation. OAuth tokens, API keys, and webhook secrets — never exposed to the frontend.

Silent Refresh

Proactive token refresh before expiry. SDK returns from local cache with zero latency.

Health Monitoring

Scheduled checks detect revoked tokens and expired credentials before users notice.

More Productivity providers

Ready to connect Microsoft OneDrive?

Get your first 100 connections free. Set up in minutes with our SDK.