Prompt

I need login with Microsoft for B2B customers

Technology / Identity & Access1 observationLast seen Oct 6, 2026

Latest observation

Oct 6, 2026OpenAI APIWeb search: off

To support “Login with Microsoft” for B2B customers, you usually want to use Microsoft Entra ID (Azure AD) as an identity provider, not the consumer Microsoft account flow.

Typical setup

1) Create an app registration

In Microsoft Entra admin center:

  • Go to App registrations
  • Register your app
  • Add your app’s redirect URI
  • Configure client secret or certificate if needed

2) Use OpenID Connect / OAuth 2.0

For sign-in, use:

  • Authorization Code Flow with PKCE for web/mobile apps
  • OpenID Connect for authentication

3) Allow B2B users

B2B customers can sign in if:

  • Their organization uses Microsoft Entra ID
  • They are invited as guest users to your tenant, or you configure multi-tenant sign-in
  • They authenticate with their work account

4) Multi-tenant vs single-tenant

  • Single-tenant: only users from your Entra tenant can sign in
  • Multi-tenant: users from other Microsoft organizations can sign in
  • For B2B scenarios, multi-tenant is commonly used

Authority / endpoints

You’ll usually use one of these authorities:

  • Single tenant
    https://login.microsoftonline.com/{tenant-id}/v2.0

  • Multi-tenant
    https://login.microsoftonline.com/organizations/v2.0

  • Common
    https://login.microsoftonline.com/common/v2.0
    (supports work/school accounts and, depending on configuration, broader account types)

For B2B work accounts, organizations is often the safest choice.

Recommended claims to request

Use scopes like:

  • openid
  • profile
  • email
  • offline_access if you need refresh tokens
  • API scopes if your app calls your backend

Important B2B note

If your customers are external organizations, you may need:

  • Tenant restrictions
  • Cross-tenant access settings
  • Or an invitation flow for guest users

Example sign-in URL pattern

https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize

With parameters like:

  • client_id
  • response_type=code
  • redirect_uri
  • scope=openid profile email
  • state
  • nonce

If you want, I can give you:

  1. a step-by-step Microsoft Entra setup, or
  2. code examples for ASP.NET / Node.js / React / Python.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as Circuit. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.