Register an Application in Azure
To use OAuth 2.0 authentication, you need to register an application in the Azure Portal.
Sign in and navigate to App Registrations
Sign in to the Azure Portal and search for App registrations in the top search bar, or navigate to Microsoft Entra ID > App registrations.
Create a new registration
Click + New registration and provide the following details:
- Enter a name for your application (e.g., StackOne Microsoft OneDrive)
- Under Supported account types, select Single tenant if only your organization will use this integration, or Multitenant if you need to support users from multiple Azure AD tenants
- Leave redirect URI blank for now
- Click Register
Configure Redirect URI
Add the redirect URI to allow OAuth authentication flow.
Navigate to Authentication Settings
From your app’s Overview page, go to Authentication (Preview) under the Manage section. (In some cases, this may appear as Authentication depending on the UI version.)
Configure redirect URI
Under Redirect URI configuration, click Add Redirect URI, select Web, enter the StackOne OAuth callback URL, and click Configure.
- Redirect URI:
https://api.stackone.com/connect/oauth2/microsoftonedrive/callback - Note: If you are using the older UI, under Platform configurations click Add a platform, select Web, enter the URI above, and click Configure.
Configure API Permissions
Grant your application the necessary permissions to access Microsoft OneDrive data.
Add Microsoft Graph permissions
Under Manage, select API permissions > Add a permission > Microsoft Graph > Delegated permissions. Add the scopes required for your use case, then click Add permissions to save.
Generate Client Secret
Create a client secret that will be used to authenticate your application with Microsoft OneDrive.
Create a New Client Secret
Under the Client secrets tab, click New client secret.
- Add a Description (e.g., StackOne Integration Secret).
- Select an expiration period.
- Click Add.
Creating the StackOne Connector Profile
To create the Connector Profile in StackOne for Microsoft OneDrive:Navigate to Connector Profiles
Create New Connector Profile
- Click + Connector Profile
- Search for and select Microsoft OneDrive
- Select Type as OAuth 2.0
- Fill out the fields using details retrieved from your provider:
- Client ID
- Client Secret
- Scopes (Optional)
- (Optional) Select Actions to be enabled for this Connector Profile
- Click Create profile