<head>
<script type=“application/ld+json”>
{{"@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "Do I need an Azure account for Microsoft sign-in?", "acceptedAnswer": {"@type": "Answer", "text": "Only if you use your own credentials. In Managed by RShift Sites mode, RShift Sites provides the OAuth configuration and no Azure account is needed."}}, {"@type": "Question", "name": "Can I limit Microsoft sign-in to my company's employees?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, with your own credentials. Enter your directory's ID in the Tenant ID field, and only accounts from that Microsoft Entra directory can sign in. Managed by RShift Sites mode cannot restrict the tenant."}}, {"@type": "Question", "name": "Why does the consent screen say RShift Sites instead of my app's name?", "acceptedAnswer": {"@type": "Answer", "text": "The provider is in Managed by RShift Sites mode, so Microsoft shows the name of the app registration that requests sign-in, which is RShift Sites'. Switch to Your own credentials to show your own app's name."}}, {"@type": "Question", "name": "Which Microsoft accounts can sign in?", "acceptedAnswer": {"@type": "Answer", "text": "By default, any Microsoft account: personal accounts and work or school accounts. With your own credentials you can narrow this to work or school accounts only, personal accounts only, or a single organization."}}, {"@type": "Question", "name": "Does Microsoft sign-in replace email and password sign-in?", "acceptedAnswer": {"@type": "Answer", "text": "No. It is an additional sign-in method, and you can offer it alongside email, Google, Apple, and other methods."}}, {"@type": "Question", "name": "Can I switch between managed and my own credentials later?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, anytime from More → Cloud → Users → Auth settings → Microsoft. Switching back to Managed by RShift Sites deletes your stored client ID, secret, tenant, and redirect URL selections, so switching to your own credentials again means entering them fresh. Azure shows a secret's value only once, so you may need to create a new secret then."}}]}}
</script>
</head>
Let users sign in to your app with their Microsoft account, whether that is a personal account or a work or school account managed by their organization. Microsoft sign-in can be configured in two ways:
- Managed by RShift Sites: RShift Sites 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.
Both options provide the same sign-in experience for users:
- 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 RShift Sites (default)
RShift Sites manages the OAuth configuration and related security updates. No Azure account is required.
Use this option if you:
- want zero setup
- are fine with the Microsoft consent screen showing RShift Sites’ name
- do not need to restrict sign-in to one organization
Prompt RShift Sites to add Microsoft sign-in
Add a Microsoft sign-in button to my app.RShift Sites enables the provider in More → Cloud → Users → Auth settings → Microsoft and adds the sign-in button to your app’s login page. You can also enable it manually from the same settings with the Enable Microsoft sign-in toggle.
Test the flow
Verify that:
- 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 More → Cloud → Users
In Managed by RShift Sites mode, any Microsoft account can sign in: the tenant cannot be restricted, and the consent screen shows RShift Sites’ name. Switch to your own credentials for either.
Your own credentials
You create an app registration in your own Azure account and connect it to RShift Sites. The consent screen shows your app’s name, you can restrict which accounts may sign in, and you are responsible for credential security and rotation.
Use this option if you:
- want the consent screen to show your own app’s name
- want to restrict sign-in to work or school accounts, personal accounts, or a single organization
- have security or compliance requirements for owning the credentials
You need an Azure account with permission to create app registrations.
Create an app registration in the Azure Portal
In the Azure Portal, go to App registrations and create a registration for your app. When Azure asks for Supported account types, choose the audience that matches who should sign in to your app: the tenant setting you pick in RShift Sites in the next step can only narrow this audience, not widen it, so a single-tenant registration blocks personal accounts no matter what RShift Sites is set to.
Then create a client secret for the registration and copy the secret’s value right away: Azure shows the value only once, and it is not the same as the secret’s ID. Note the registration’s Application (client) ID, and its Directory (tenant) ID if you plan to restrict sign-in to your organization.
Enter your credentials in RShift Sites
In More → Cloud → Users → Auth settings → Microsoft, choose Your own credentials and fill in:
- Client ID (Application ID): the Application (client) ID from your app registration.
- Client secret: the secret value you copied in the previous step.
- Tenant ID (Directory ID), optional: who can sign in. Leave it empty (the default is
common) to allow any Microsoft account, enterorganizationsto allow only work or school accounts, enterconsumersto allow only personal accounts, or enter your Directory (tenant) ID to allow only accounts from your organization.
Add the redirect URLs to your Azure configuration
Copy each URL from the Redirect URL(s) field in RShift Sites into your app registration in the Azure Portal, under Authentication → Add a platform → Web, then confirm in RShift Sites which ones you added. Microsoft sign-in fails until these match. The list includes RShift Sites’ shared callback, your app’s own URL, and any custom domains attached to the project. When you attach a new custom domain later, check the list again and add the new URL in Azure.
Test the flow
Sign in with a Microsoft account that your tenant setting allows, and confirm the user appears in More → Cloud → Users.
Managing Microsoft authentication
You can switch between Managed by RShift Sites and Your own credentials at any time from More → Cloud → Users → Auth settings → Microsoft. Switching back to Managed by RShift Sites 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 RShift Sites in the project chat:
Remove the Microsoft sign-in button from my app.Or disable the provider in the auth settings. Users who signed up with Microsoft keep their accounts but need another enabled sign-in method to get back in.
Troubleshooting
Microsoft sign-in stopped working after months of working fine
If you use your own credentials, your client secret has probably expired. Azure secrets expire on the date set when they were created. Create a new secret in the Azure Portal, copy its value, and save it in the Microsoft auth settings.
Users see a redirect error during sign-in
The redirect URIs in your Azure app registration don’t match the redirect URLs RShift Sites shows. Copy every URL from the Redirect URL(s) field into the Azure Portal under Authentication → Add a platform → Web exactly, then retry. If sign-in fails only on your published app or custom domain, also check your project’s redirect URLs.
People from outside my organization can’t sign in
That is your tenant setting doing its job. If it shouldn’t: in More → Cloud → Users → Auth settings → Microsoft, clear the Tenant ID (Directory ID) field to allow any Microsoft account, or set it to 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?
Only if you use your own credentials. In Managed by RShift Sites mode, RShift Sites provides the OAuth configuration and no Azure account is needed.
Can I limit Microsoft sign-in to my company’s employees?
Yes, with your own credentials. Enter your directory’s ID in the Tenant ID (Directory ID) field, and only accounts from that Microsoft Entra directory can sign in. Managed by RShift Sites mode cannot restrict the tenant.
Why does the consent screen say RShift Sites instead of my app’s name?
The provider is in Managed by RShift Sites mode, so Microsoft shows the name of the app registration that requests sign-in, which is RShift Sites’. Switch to Your own credentials to show your own app’s name.
Which Microsoft accounts can sign in?
By default, any Microsoft account: personal accounts and work or school accounts. With your own credentials you can narrow this to work or school accounts only, personal accounts only, or a single organization.
Does Microsoft sign-in replace email and password sign-in?
No. It is an additional sign-in method, and you can offer it alongside email, Google, Apple, and other methods.
Can I switch between managed and my own credentials later?
Yes, anytime from More → Cloud → Users → Auth settings → Microsoft. Switching back to Managed by RShift Sites deletes your stored client ID, secret, tenant, and redirect URL selections, so switching to your own credentials again means entering them fresh. Azure shows a secret’s value only once, so you may need to create a new secret then.