- Managed by Lovable: Lovable manages the OAuth configuration and security updates. This is the default and requires no Azure account.
- Your own credentials: you connect an app registration from your own Azure account and manage its credentials yourself.
- The user picks Microsoft sign-in in your app
- Microsoft asks them to sign in and confirm
- Microsoft redirects the user back to your app, signed in
Why use Microsoft sign-in
Microsoft sign-in reduces signup friction, and it fits audiences that already live in Microsoft accounts, especially at work:- Your users work at organizations that run on Microsoft 365, so they already have a Microsoft account
- Faster onboarding without password creation, and less password reset overhead
- With your own credentials, sign-in can be limited to your organization’s own accounts
- It combines with other methods: users pick Microsoft, Google, Apple, or email on the same login page
Common use cases
Microsoft sign-in is commonly used for:- B2B tools where customers sign in with their work Microsoft accounts
- Internal tools restricted to your organization’s Microsoft Entra directory
- Consumer apps that offer Microsoft alongside Google and Apple sign-in
Microsoft authentication setup options
The end-user experience is identical in both modes; the difference is who manages the OAuth credentials and what you can control.- Managed by Lovable (default)
- Your own credentials
- want zero setup
- are fine with the Microsoft consent screen showing Lovable’s name
- do not need to restrict sign-in to one organization
Prompt Lovable to add Microsoft sign-in
Test the flow
- a Microsoft sign-in button appears on your login page
- users are redirected to Microsoft to sign in
- users return to the app in a signed-in state
- new users appear in Cloud tab → Users
Managing Microsoft authentication
You can switch between Managed by Lovable and Your own credentials at any time from Cloud tab → Users → Auth settings → Microsoft. Switching back to Managed by Lovable deletes your stored client ID, secret, tenant, and redirect URL selections, so switching to your own credentials again means entering them fresh. Turning Enable Microsoft sign-in off also clears stored credentials. To remove the sign-in option, ask Lovable in chat:Troubleshooting
Microsoft sign-in stopped working after months of working fine
Microsoft sign-in stopped working after months of working fine
Users see a redirect error during sign-in
Users see a redirect error during sign-in
People from outside my organization can't sign in
People from outside my organization can't sign in
organizations to allow work or school accounts from any organization. With your own credentials, also check that your Azure app registration’s supported account types allow those accounts.FAQ
Do I need an Azure account for Microsoft sign-in?
Do I need an Azure account for Microsoft sign-in?
Can I limit Microsoft sign-in to my company's employees?
Can I limit Microsoft sign-in to my company's employees?
Why does the consent screen say Lovable instead of my app's name?
Why does the consent screen say Lovable instead of my app's name?
Which Microsoft accounts can sign in?
Which Microsoft accounts can sign in?
Does Microsoft sign-in replace email and password sign-in?
Does Microsoft sign-in replace email and password sign-in?
Can I switch between managed and my own credentials later?
Can I switch between managed and my own credentials later?