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 »

Convert Excel to PDF in C# Applications

Overview Transforming Excel files into polished, share‑ready PDFs doesn’t have to be a slow or complicated process. With the GroupDocs.Conversion Cloud SDK for...

Assign issues to Copilot using the API

GraphQL support You can assign issues to Copilot using the following mutations: - updateIssuehttps://docs.github.com/graphql/reference/mutationsupdateissue - c...