mrochon / fedmt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scenario

Use B2C to support a multitenant app whose users are either employees of a federated IdP or local users. Federated users should be signed up silently. Local users are created by federated users.

SignIn

The sign in UI must allow selection of just one federated IdP, chosen by the relying party and local account sign in option. It must also include option to reset local user password.

Local user must be created via a separate process and assigned as related to a particular federated company. The sign must only return the local users token if the user is assigned to the federated company whose identity is contained in the signin token request as per examples below.

The sign in url must include two additional query parameters:

  • idp - with value mapping a claim selecting the right federated IdP TechnicalProfile, e.g. entraid or comp1.
  • domain - if the IdP is entraid, domain value identifies an Entra ID tenant. Examples:
https://mrochonb2cprod.b2clogin.com/mrochonb2cprod.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1A_MT_SIGNIN&client_id=88e4056b-ffce-4660-a3fe-2481e2713197&nonce=defaultNonce&redirect_uri=https%3A%2F%2Foidcdebugger.com%2Fdebug&scope=openid&response_type=id_token&idp=entraid&domain=beitmerari.com
https://mrochonb2cprod.b2clogin.com/mrochonb2cprod.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1A_MT_SIGNIN&client_id=88e4056b-ffce-4660-a3fe-2481e2713197&nonce=defaultNonce&redirect_uri=https%3A%2F%2Foidcdebugger.com%2Fdebug&scope=openid&response_type=id_token&idp=google

About


Languages

Language:C# 100.0%