# Unnecessary request to Azure B2C for 2nd application login

**URL:** <https://community.auth0.com/t/unnecessary-request-to-azure-b2c-for-2nd-application-login/127446>\
**Category:** Get Help\
**Tags:** connections, saml-enterprise-connection\
**Created:** [February 15, 2024, 3:45pm UTC](https://community.auth0.com/t/unnecessary-request-to-azure-b2c-for-2nd-application-login/127446 "2024-02-15T15:45:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![A-F.van.Hezewijk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/a-f.van.hezewijk/32/74784_2.png) [@A-F.van.Hezewijk](https://community.auth0.com/u/A-F.van.Hezewijk)\
**Post date:** [February 15, 2024, 3:45pm UTC](https://community.auth0.com/t/unnecessary-request-to-azure-b2c-for-2nd-application-login/127446/1 "2024-02-15T15:45:55Z")

</div>

Hey all,

Setup:

- Applications A and B (Both .Net Framework)
- Auth0 (Actually a double setup with Product Group Tenant and Master Tenant, but that is probably not relevant for this setup)
- External IDP \> Azure B2C (SAML Connection)

We are experiencing a problem when logging in with Auth0. When Im logged in with App A, and use Azure B2C for authentication everything is going great. User is successfully logged in into application A and also in Azure.  
Problem starts when logging in with App B. Whenever a user does that, a call to Auth0 will be done to authenticate, but also to Azure B2C.  
Why is the call to Azure B2C made, when I have already logged into Auth0? The same call in IdentityServer does not progress beyond Identityserver itself, which is as expected?

What can trigger this behavior?

- Requested scope is similar, although App B requests less.
- Token type in request is more in App B. App A requests idtoken and code, whilst B requests also the accesstoken right away.
- Endpoints are the same
- Connection is the same (SAML)

Regards,

Freek

---

<div class="post-metadata">

**Author:** ![A-F.van.Hezewijk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/a-f.van.hezewijk/32/74784_2.png) [@A-F.van.Hezewijk](https://community.auth0.com/u/A-F.van.Hezewijk)\
**Post date:** [May 3, 2024, 9:31am UTC](https://community.auth0.com/t/unnecessary-request-to-azure-b2c-for-2nd-application-login/127446/2 "2024-05-03T09:31:31Z")

</div>

After talking to Auth0 support, this appears to be default functionality in Auth0 whenever you send in a connection parameter. If you for instance link to Azure Entra as IDP, and do a request to login with an added connection for the Azure Entra IDP, it will always bubble up all the way to Azure.

If you omit the connection, this behavior will not occur.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 17, 2024, 9:31am UTC](https://community.auth0.com/t/unnecessary-request-to-azure-b2c-for-2nd-application-login/127446/3 "2024-05-17T09:31:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
