# Specify IDP on connection with express-openid-connect library

**URL:** <https://community.auth0.com/t/specify-idp-on-connection-with-express-openid-connect-library/68421>\
**Category:** Get Help\
**Created:** [August 23, 2021, 6:46pm UTC](https://community.auth0.com/t/specify-idp-on-connection-with-express-openid-connect-library/68421 "2021-08-23T18:46:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephen.fowler](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephen.fowler/32/12715_2.png) [@stephen.fowler](https://community.auth0.com/u/stephen.fowler)\
**Post date:** [August 23, 2021, 6:46pm UTC](https://community.auth0.com/t/specify-idp-on-connection-with-express-openid-connect-library/68421/1 "2021-08-23T18:46:36Z")

</div>

I’m looking to specify a connection with auth0/express-openid-connect. We currently don’t have a user login screen with options for finding out the domain so we specify 2 different login paths 1 for our customers and 1 for our maintainers.  
Passport-auth0 allows for this like so:

```auto
app.get(
	'/login/google',
	passport.authenticate('auth0', {connection: 'google-oauth2'}), 
	function (req, res) {
		res.redirect('/');
	}
);

```

But as far as I can tell the new library doesn’t allow specifying a connection. Can you direct me to that functionality? Thanks!

---

<div class="post-metadata">

**Author:** ![stephen.fowler](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephen.fowler/32/12715_2.png) [@stephen.fowler](https://community.auth0.com/u/stephen.fowler)\
**Post date:** [August 24, 2021, 1:28am UTC](https://community.auth0.com/t/specify-idp-on-connection-with-express-openid-connect-library/68421/2 "2021-08-24T01:28:32Z")

</div>

Omar from Auth0 responded to me via email: It turns out I can just do it as part of the authorizationParameters.  
From his example:

```auto

const config = {

authRequired: false,

auth0Logout: true,

authorizationParams: {

// Note: you need to provide required parameters if this object is set.

response_type: "id_token",

response_mode: "form_post",

scope: "openid profile email",

// Additional parameters

connection: "google-oauth2"

}

};

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 24, 2021, 2:07pm UTC](https://community.auth0.com/t/specify-idp-on-connection-with-express-openid-connect-library/68421/3 "2021-08-24T14:07:19Z")

</div>

Perfect! Thanks for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 26, 2021, 9:20am UTC](https://community.auth0.com/t/specify-idp-on-connection-with-express-openid-connect-library/68421/4 "2021-08-26T09:20:12Z")

</div>


