# Getting an extranious "Sign in button" I can't find a way around

**URL:** <https://community.auth0.com/t/getting-an-extranious-sign-in-button-i-cant-find-a-way-around/138391>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [July 8, 2024, 7:39pm UTC](https://community.auth0.com/t/getting-an-extranious-sign-in-button-i-cant-find-a-way-around/138391 "2024-07-08T19:39:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![braingeneers-admins](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@braingeneers-admins](https://community.auth0.com/u/braingeneers-admins)\
**Post date:** [July 8, 2024, 7:39pm UTC](https://community.auth0.com/t/getting-an-extranious-sign-in-button-i-cant-find-a-way-around/138391/1 "2024-07-08T19:39:45Z")

</div>

- I’m using oauth2-proxy to redirect users into auth0, this works.
- Auth0 if confi\gured with a Authentication/Social to authenticate to [cilogon.org](http://cilogon.org), this works.
- I have 2 actions created one for [cilogon.org](http://cilogon.org) to work and the other to validate roles in auth0, this works.

When oauth2-proxy redirects to `dev-me.us.auth0.com/authorize?state=...` I’m prompted with a “Sign in with CILogon” button. I want to skip this superfluous step and go straight to CILogon.

I noted this related thread but the solution there hasn’t made any change to me: [Button before login auth0](https://community.auth0.com/t/button-before-login-auth0/95013)

The 302 redirect to auth0 is this URL, it’s to /authorize as described in the thread above.

The sequence of redirects from my webserver to auth0 is as follows:

```auto
dev-me.us.auth0.com/authorize?approval_prompt=auto&client_id=<obfuscated>&redirect_uri=https%3A%2F%2Fauth.braingeneers.gi.ucsc.edu%3A8443%2Foauth2%2Fcallback&response_type=code&scope=openid+email+profile&state=<obfuscated>%3Ahttps%3A%2F%2Fwhoami.braingeneers.gi.ucsc.edu%2F

```

After my web server 302-redirects to auth0, auth0 produces a 302 redirect to:

```auto
dev-me.us.auth0.com/login?state=<obfuscated>&protocol=oauth2&approval_prompt=auto&redirect_uri=https%3A%2F%2Fauth.braingeneers.gi.ucsc.edu%3A8443%2Foauth2%2Fcallback&response_type=code&scope=openid%20email%20profile

```

I tried playing with approval\_prompt, it was set to “forced” by default, I tried “auto” (per a claude.ai debug thread) as well as other obvious things like “false”.

I’m not sure what’s causing the login button on auth0 to display prior to the redirect to “social” cilogon org.

![image](https://global.discourse-cdn.com/auth0/original/3X/8/b/8b69d180f49d915d68643e859fa62a52f90fb717.png)

---

<div class="post-metadata">

**Author:** ![gparascandolo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gparascandolo/32/38788_2.png) [@gparascandolo](https://community.auth0.com/u/gparascandolo)\
**Post date:** [July 8, 2024, 8:11pm UTC](https://community.auth0.com/t/getting-an-extranious-sign-in-button-i-cant-find-a-way-around/138391/2 "2024-07-08T20:11:46Z")

</div>

Hey @braingeneers-admins

According to [https://auth0.com/docs/api/authentication#social](https://auth0.com/docs/api/authentication#social), you should be able to bypass the login screen if you pass a `connection` param with the name of the custom social connection directly to the `/authorize` request.

More details can be found here as well  
[https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/oauth2#log-in-using-the-custom-connection](https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/oauth2#log-in-using-the-custom-connection)

Let me know if that solves your issue!

---

<div class="post-metadata">

**Author:** ![braingeneers-admins](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@braingeneers-admins](https://community.auth0.com/u/braingeneers-admins)\
**Post date:** [July 10, 2024, 6:22pm UTC](https://community.auth0.com/t/getting-an-extranious-sign-in-button-i-cant-find-a-way-around/138391/3 "2024-07-10T18:22:40Z")

</div>

That was it, thanks. In fact I already had the connection parameter (technically chatgpt had already included it) but it gets dropped by oauth2-proxy (an issue now open at their github - [oidc auth redirect drops the `connection` parameter as defined in `login_url` unexpectedly · Issue #2702 · oauth2-proxy/oauth2-proxy · GitHub](https://github.com/oauth2-proxy/oauth2-proxy/issues/2702)). It works when I manually inject that parameter to the redirect URL, so all is well on the auth0 side. Thanks for the helpful reply.

---

<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:** [July 24, 2024, 6:23pm UTC](https://community.auth0.com/t/getting-an-extranious-sign-in-button-i-cant-find-a-way-around/138391/4 "2024-07-24T18:23:19Z")

</div>

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