Appearance
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
- Go to the Azure portal (or Microsoft Entra admin center, depending on your setup).
- Create an app registration (or open an existing one).
- 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 pagein WeWeb.
- Use the full URL of the page you select as
- Copy the values you’ll need (for example
Client IDandClient Secret).
Connect Microsoft in WeWeb
- In the WeWeb editor, go to
Data & API → Auth → Integrating providers. - Select
Microsoftand turn on theEnabletoggle. - Paste the values from Microsoft into the fields shown in WeWeb.
- Click
Save.
Test sign in
- Add a “Continue with Microsoft” button in
Interface. - Create a workflow on click and add
Sign in with social provider. - Set:
Provider:microsoftSuccess page,Error page, And (optional)New user page
- 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 WeWeb | Description | Where to find it in Microsoft |
|---|---|---|
Client ID | Identifies your Microsoft app registration. | App registration overview. |
Client Secret | Used 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).

