# Pre-selecting custom oauth2 connection on login

**URL:** <https://community.auth0.com/t/pre-selecting-custom-oauth2-connection-on-login/118995>\
**Category:** Get Help\
**Tags:** custom-social-connections-branding, connections\
**Created:** [October 20, 2023, 8:41am UTC](https://community.auth0.com/t/pre-selecting-custom-oauth2-connection-on-login/118995 "2023-10-20T08:41:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewbroadleynz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/drewbroadleynz/32/51811_2.png) [@drewbroadleynz](https://community.auth0.com/u/drewbroadleynz)\
**Post date:** [October 20, 2023, 8:41am UTC](https://community.auth0.com/t/pre-selecting-custom-oauth2-connection-on-login/118995/1 "2023-10-20T08:41:47Z")

</div>

Hi there,

We have setup a custom social connection, which uses oauth2.

I know how to pre-select things like Google (using google-oauth2), or Microsoft (using windowslive), but I cannot figure out how to pre-select our custom connection.

It’s a requirement of the platform we’re using to be certified that we are able to invoke their login, and we use Auth0, so want to keep the flow through that.

I’ve tried the conn\_xxxxxxx ID in the `connection` param, that doesn’t work and comes back that the connection isnt’ enabled.

How can I dot his?

---

<div class="post-metadata">

**Author:** ![drewbroadleynz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/drewbroadleynz/32/51811_2.png) [@drewbroadleynz](https://community.auth0.com/u/drewbroadleynz)\
**Post date:** [October 20, 2023, 8:45am UTC](https://community.auth0.com/t/pre-selecting-custom-oauth2-connection-on-login/118995/2 "2023-10-20T08:45:12Z")

</div>

Oh of course, the moment I post this I figure it out.

I didn’t realise the name of the connection was a valid value, i.e. we had a capitalised name for it.

For future people like me, you just use the “name” you set in the connection.

---

<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:** [November 3, 2023, 8:45am UTC](https://community.auth0.com/t/pre-selecting-custom-oauth2-connection-on-login/118995/3 "2023-11-03T08:45:23Z")

</div>

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