# What is the parameter should I pass to indicate IDP connection

**URL:** <https://community.auth0.com/t/what-is-the-parameter-should-i-pass-to-indicate-idp-connection/115732>\
**Category:** Get Help\
**Tags:** azure-ad-enterprise-connection, connections\
**Created:** [September 8, 2023, 7:01am UTC](https://community.auth0.com/t/what-is-the-parameter-should-i-pass-to-indicate-idp-connection/115732 "2023-09-08T07:01:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkandasamy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mkandasamy](https://community.auth0.com/u/mkandasamy)\
**Post date:** [September 8, 2023, 7:01am UTC](https://community.auth0.com/t/what-is-the-parameter-should-i-pass-to-indicate-idp-connection/115732/1 "2023-09-08T07:01:40Z")

</div>

What is the parameter that I should pass when authorizing user to indicate the idp connection?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 8, 2023, 5:04pm UTC](https://community.auth0.com/t/what-is-the-parameter-should-i-pass-to-indicate-idp-connection/115732/3 "2023-09-08T17:04:51Z")

</div>

HI @mkandasamy,

You should pass in the IdP Connection’s name in the `connection` query parameter of your login request.

It should look something like the following:

```auto
https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    audience={apiAudience}&
    state={state}&
    connection=YOUR_IDP_CONNECTION_NAME

```

If you found this post helpful or interesting, please give it a like 👍 . Your interaction makes a difference. **Have a wonderful day!** 🌞

Thanks,  
Rueben

* * *

[📹 _Prefer how-to videos instead of written docs? We’ve got you covered! Check out our OktaDev YouTube channel for those helpful resources!_](https://www.youtube.com/@OktaDev/videos)

---

<div class="post-metadata">

**Author:** ![mkandasamy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mkandasamy](https://community.auth0.com/u/mkandasamy)\
**Post date:** [September 8, 2023, 5:15pm UTC](https://community.auth0.com/t/what-is-the-parameter-should-i-pass-to-indicate-idp-connection/115732/4 "2023-09-08T17:15:16Z")

</div>

Thanks Rueben, but I’m looking for a solution in _express-openid-connect_ nodejs library. Like the following:

```auto
app.use(
  auth({
    issuerBaseURL: process.env.AUTH0_ISSUER_BASE_URL,
    baseURL: process.env.BASE_URL,
    clientID: process.env.AUTH0_CLIENT_ID,
    secret: process.env.SESSION_SECRET,
    authRequired: true,
    auth0Logout: true,
    authorizationParams: {
    }
    //connection: "SampleMultiTenantUI-AzureAD"
  })
);

```

what would be the parameter I can pass in the nodejs middleware object indentifying connection name?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 11, 2023, 6:40pm UTC](https://community.auth0.com/t/what-is-the-parameter-should-i-pass-to-indicate-idp-connection/115732/5 "2023-09-11T18:40:53Z")

</div>

Hi @mkandasamy,

Thanks for following up.

The code snippet you shared is the correct way to pass the connection parameter into your login request.

Thanks,  
Rueben

---

<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:** [September 25, 2023, 6:41pm UTC](https://community.auth0.com/t/what-is-the-parameter-should-i-pass-to-indicate-idp-connection/115732/6 "2023-09-25T18:41:07Z")

</div>

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