For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
DocumentationAPI Reference
DocumentationAPI Reference
    • What is Auth.it?
  • Getting Started
    • Quick Start Guide
    • Example Apps
  • Configuration
    • Authentication
      • Social Login
        • GitHub
        • Google
        • Microsoft
        • Apple
      • Password Policy
      • Multi-Factor Authentication (MFA)
      • Passkeys
      • Magic Links
      • Self-Registration
      • Session Settings
    • Branding
    • Domains
    • Email
    • Roles
  • Entities
    • Organizations
    • Users
  • Developer
    • Audit Logs
    • Webhooks
    • Applications
    • API Keys
  • Resources
    • GitHub
Dashboard
LogoLogo
ConfigurationAuthenticationSocial Login

Microsoft

Was this page helpful?
Previous

Apple

Next
Built with

To enable Auth.it to authenticate users with Microsoft:

  1. In Auth.it’s Authentication view:
    1. In the Microsoft section, click Enable Microsoft.
    2. In the configuration pop-up, click the toggle to enable Microsoft integration.
    3. Copy the redirect URI that Auth.it displays.
  2. In Microsoft Azure, create an application registration and a client secret:
    1. Go to the Azure portal.
    2. Under Azure services, click Microsoft Entra ID. If not listed, click More services, then search for and click Microsoft Entra ID.
    3. In the top menu, click Add and select App registration.
    4. Enter a name for your application (this is displayed to users during login).
    5. Under Supported account types, select Accounts in any organizational directory and personal Microsoft accounts. This will allow users to log in whether or not they belong to your Azure organization.
    6. Under Redirect URI, select Web and paste the redirect URI you copied from Auth.it. Here’s an example of what your application settings may look like: Microsoft Entra ID application settings
    7. Click Register.
    8. On the application’s Overview page, copy the Application (client) ID — this is your Microsoft Client ID.
    9. In your registered app, click Manage in the left-hand menu, then select Certificates & secrets.
    10. Under Client secrets, click New client secret.
    11. Enter a description and select an expiration period.
    12. Click Add.
    13. Copy the generated secret value from the Value column.
  3. Back in Auth.it’s Microsoft configuration pop-up:
    1. Paste the application (client) ID into Microsoft Client ID.
    2. Paste the client secret value into Microsoft Client Secret.
    3. Click Save changes.

To test that the Microsoft integration is working:

  1. In your application, go to the login page. Notice that it now contains a button to log in with Microsoft: Login page with a Microsoft login button
  2. Click the Microsoft login button.
  3. If your Microsoft login session is active, you should see the Microsoft consent screen requesting access on behalf of your application. Click Accept: Authorize Microsoft OAuth app
  4. You are now logged in with your Microsoft account and redirected back to your application.