In short.
This guide helps Lovable app builders add Microsoft sign-in, but the feature requires Lovable's built-in backend. Managed mode needs no Azure account, accepts any Microsoft account and shows Lovable's name on the consent screen. Using your own Azure registration enables your app's branding and account restrictions, while making you responsible for credentials, secret expiry and matching redirect URLs. The page provides concrete setup and troubleshooting instructions; no configuration or sign-in flow was executed, and pricing is unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is the complete documentation page at [https://docs.lovable.dev/features/microsoft-auth.md], including both setup modes, management instructions, troubleshooting, FAQs and notices about backend eligibility, secret expiry and credential deletion. Linked pages, the documentation index and Azure Portal content are excluded. No configuration, sign-in, account restriction, redirect behavior or credential rotation was executed or tested.
The overview
Resource identity
Add Microsoft authentication to your app is Lovable's documentation for letting an app's users sign in with Microsoft accounts. The source is [https://docs.lovable.dev/features/microsoft-auth.md].
It covers authentication in apps using Lovable's built-in backend. Signing in to the Lovable workspace through Microsoft Entra ID and accessing files or email through the Microsoft 365 connector are separate features.
Practical assessment
The guide is useful for deciding who should manage Microsoft OAuth configuration. Managed mode suits builders who accept Lovable branding and unrestricted Microsoft account eligibility. Your own credentials suit apps needing their own consent-screen name or a narrower sign-in audience.
Its practical strength is its explanation of failure conditions: incompatible Azure account types, mismatched redirect URLs and expired client secrets. Setup effort, reliability and the documented interface have not been independently assessed.
Who it is for
The intended readers are Lovable builders creating business tools for Microsoft-account users, internal tools restricted to a Microsoft Entra directory, or consumer apps offering Microsoft alongside other login methods.
Beginners can follow the managed path without an Azure account. The own-credentials path requires someone able to create Azure app registrations and maintain their credentials.
Documented capabilities
Microsoft sign-in supports personal accounts and work or school accounts. It can appear alongside email, Google, Apple and other enabled sign-in methods.
With your own credentials, the tenant setting can allow all Microsoft accounts, work or school accounts, personal accounts, or accounts from one directory, subject to the Azure registration's supported account types. The provider can be enabled, disabled or switched between credential modes.
Using it
Requirements
Both modes require an app using Lovable's built-in backend. Managed mode requires no Azure account.
Your own credentials require an Azure account with permission to create app registrations, an Application client ID and a client secret's value. Restriction to one organization also requires its Directory tenant ID. The Azure registration must permit the intended account audience and include the redirect URLs shown by Lovable.
How sign-in works
The documented flow starts when a user selects Microsoft sign-in in the app. Microsoft handles sign-in and confirmation, then redirects the user back to the app in a signed-in state.
The two modes provide the same user-facing flow. Lovable manages OAuth configuration and related security updates in managed mode; with your own Azure registration, you manage the credentials. The page does not specify protocol scopes, token handling or session internals.
Setup instructions
For managed mode, the guide suggests asking Lovable to add a Microsoft sign-in button. It says this enables the provider and adds the button to the login page. The provider can also be enabled manually under More → Users → Settings → Microsoft.
For your own credentials, create an Azure app registration with appropriate supported account types, create a client secret and immediately copy its value. Enter the client ID and secret value in Lovable. The secret value is different from its ID and is shown by Azure only once.
Set the tenant field to empty for the default common audience, organizations for work or school accounts, consumers for personal accounts, or your directory ID for one organization. Copy every displayed redirect URL into Azure under Authentication → Add a platform → Web, then confirm the additions in Lovable. Revisit these URLs when adding a custom domain.
Example application
For an internal tool intended only for accounts in one organization's Microsoft Entra directory, choose your own credentials, use an Azure registration with compatible account types and enter that directory's tenant ID in Lovable. Register every redirect URL Lovable displays.
The documented restriction is to accounts from that directory. A useful validation would check that an allowed account can sign in and an account outside the directory is refused. This is a configuration example; neither outcome was tested.
Assessment & evidence
Limitations and operational risks
Managed mode cannot restrict the Microsoft tenant and shows Lovable's name on the consent screen. Your own credentials provide audience control, but Lovable's tenant setting can only narrow the account types allowed by the Azure registration.
An expired Azure client secret stops Microsoft sign-in until a replacement value is saved. Redirect URLs must match, including those needed for custom domains.
Switching back to managed mode deletes stored client ID, secret, tenant and redirect selections. Disabling Microsoft sign-in also clears stored credentials. Existing users retain their accounts but need another enabled sign-in method to return. Account-linking behavior and recovery details are not explained.
Why the configuration choices matter
Account eligibility depends on both the Azure registration and Lovable's tenant setting. A single-tenant Azure registration still blocks personal accounts even if Lovable is set to common. This explains why changing only the tenant field may not resolve an unexpected rejection.
The documented tradeoff is convenience versus configuration control and maintenance responsibility. An organization-only audience requires your own credentials; accepting all Microsoft accounts and Lovable branding makes managed mode a practical option.
Alternatives within the documented scope
Managed OAuth and your own Azure registration are the two documented implementation choices. Email, Google and Apple are mentioned as other sign-in methods that can coexist with Microsoft.
The linked guides for those methods are outside this source's scope. Their requirements, costs and suitability are not assessed, and the page does not provide a comparison with other authentication platforms.
Evidence and confidence
The source is Lovable's complete documentation page at [https://docs.lovable.dev/features/microsoft-auth.md]. It provides first-party descriptions of setup, account eligibility, credential management and troubleshooting.
These are documented behaviors, not independently demonstrated outcomes. No app was configured, no authentication flow was executed and no performance, reliability or security testing was performed.
Access & freshness
Costs
The page gives no prices, subscription requirements, usage charges or Azure-related fees. The cost of either configuration is unknown. Not needing an Azure account in managed mode does not establish that the feature is free.
Your own credentials introduce maintenance work for secret rotation and redirect configuration, but the time and financial cost are not quantified.
Rights and licensing
The page does not state a documentation license or grant redistribution rights. Permission to redistribute its text and any applicable service licensing terms are unknown from this source.
Freshness
The documentation snapshot was captured on 15 November 2026 at 03:43:55 UTC. The page states no publication date, last-update date or feature version, so its age and any changes after capture are unknown.
Recommended next steps
Confirm that your app uses Lovable's built-in backend, then decide whether all Microsoft accounts are acceptable and whose name should appear on the consent screen. Use those requirements to choose the credential mode.
After configuration, follow the guide's checks: confirm the button appears, Microsoft redirects the user back signed in and a new user appears under More → Users. With restricted accounts, also verify the intended audience boundary.
For your own credentials, track the secret's expiry and update Azure redirect URLs when domains change. Before disabling Microsoft sign-in, confirm that affected users have another usable sign-in method. Establish pricing and applicable terms separately, since this page does not supply them.
