Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If you try to auth with _many_ scopes and you are not already logged into Twitch you get a 502 #923

Open
BarryCarlyon opened this issue Mar 11, 2024 · 2 comments
Labels
product: authentication ticketed Has been given an internal tracking ticket

Comments

@BarryCarlyon
Copy link
Contributor

BarryCarlyon commented Mar 11, 2024

Brief description

If a user is not already logged into twitch and tries to go to a id.twitch token get a 502 instead of redirect to login.

This only occurs if you have more than a certain number of scopes, I've not debugged/traced how many scopes are needed to trip this behaviour

How to reproduce

  1. Open an incognito (or log out)
  2. Go to this auth link
  3. Get a HTTP/nginx 502 instead of a redirect to login

Expected behavior

Redirect to login

Screenshots

Same link, top incognito bottom "regular" already logged in

image

@thedist
Copy link
Member

thedist commented Mar 11, 2024

One thing to note, it does not appear to be directly related to scopes but rather to be the URL length as I can request no scopes and still get a 502 if I include a state param that pushes the URL length to greater than 2,318 characters.

@BarryCarlyon BarryCarlyon changed the title If you try to auth with _many_ scopes and you are not already logged into twitc you get a 502 If you try to auth with _many_ scopes and you are not already logged into Twtich you get a 502 Mar 12, 2024
@BarryCarlyon BarryCarlyon changed the title If you try to auth with _many_ scopes and you are not already logged into Twtich you get a 502 If you try to auth with _many_ scopes and you are not already logged into Twitch you get a 502 Mar 12, 2024
@Xemdo Xemdo added the ticketed Has been given an internal tracking ticket label Mar 25, 2024
@Xemdo
Copy link

Xemdo commented Mar 25, 2024

Internally ticketed as IDPLAT-7844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: authentication ticketed Has been given an internal tracking ticket
Projects
None yet
Development

No branches or pull requests

3 participants