Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Microsoft authentication

Microsoft authentication lets your users sign in with Microsoft accounts (personal accounts and/or work accounts, depending on your app settings).

What this integration supports (optional)

  • Social sign in with Microsoft
  • Redirect to different pages for success, error, and first-time users

Setup in the Microsoft dashboard

  1. Go to the Azure portal (or Microsoft Entra admin center, depending on your setup).
  2. Create an app registration (or open an existing one).
  3. In the authentication settings for the app, add a redirect URL (the URL Microsoft sends users back to after login).
    • Use the full URL of the page you select as Success page in WeWeb.
  4. Copy the values you’ll need (for example Client ID and Client Secret).

Connect Microsoft in WeWeb

  1. In the WeWeb editor, go to Data & API → Auth → Integrating providers.
  2. Select Microsoft and turn on the Enable toggle.
  3. Paste the values from Microsoft into the fields shown in WeWeb.
  4. Click Save.

Test sign in

  1. Add a “Continue with Microsoft” button in Interface.
  2. Create a workflow on click and add Sign in with social provider.
  3. Set:
    • Provider: microsoft
    • Success page, Error page, And (optional) New user page
  4. Preview and complete the sign-in flow.

Common pitfalls

Redirect URL mismatch

Make sure the redirect URL in Microsoft exactly matches the Success page URL you selected in WeWeb.

Wrong account type

If some users can’t sign in, check whether your app registration is limited to a specific organization (tenant) or account type.

Reference

Setting in WeWebDescriptionWhere to find it in Microsoft
Client IDIdentifies your Microsoft app registration.App registration overview.
Client SecretUsed to complete the sign-in flow securely.Certificates & secrets.

FAQs

Which redirect URL should I add in Microsoft?

Use the full URL of the page you choose as Success page in Sign in with social provider (for the environment you’re testing).