How to create Microsoft OAuth2 API

Published: (December 3, 2025 at 02:52 AM EST)
1 min read
Source: Dev.to

Source: Dev.to

Register a new application

  1. Go to Azure Portal – App Registrations: https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
  2. Click New registration.
  3. Fill Name.
  4. Choose Accounts in any organizational directory (Any Microsoft Entra ID tenant – Multitenant).
  5. Choose Web.
  6. Set Redirect URI to https://[host]/rest/oauth2-credential/callback.

Retrieve application credentials

  1. Copy the Application (client) ID.
  2. Click Add a certificate or secret.
  3. Click New client secret.
  4. Fill Description.
  5. Choose Expires.
  6. Click Add.
  7. Copy the Value (Client Secret).
Back to Blog

Related posts

Read more »

n8n: Credential - Google Tasks account

Prerequisite - Create a Google OAuth2 API – see the guide: How to create Google OAuth2 APIhttps://dev.to/codebangkok/how-to-create-google-oauth2-api-o29 - Enab...

n8n: Credential - Jira SW Cloud API

!Forem Logohttps://media2.dev.to/dynamic/image/width=65,height=,fit=scale-down,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%...