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

Discord redirect url cannot contain capital letters #3577

Open
supercrafter100 opened this issue Jan 13, 2025 · 0 comments
Open

Discord redirect url cannot contain capital letters #3577

supercrafter100 opened this issue Jan 13, 2025 · 0 comments
Labels

Comments

@supercrafter100
Copy link
Member

Describe the issue

When the hostname of the site contains capital letters, the redirect url will as well. However, Discord automatically puts everything to lowercase when you enter a redirect url and says the redirect is invalid if you do still have capital letters in the redirect url you provide during the oauth2 flow

NamelessMC Version

Development version

To Reproduce

  1. Have capital letters in the hostname configured in core/config.php
  2. Enter the redirect url as specified in StaffCP in the Discord developer portal and configure the client ID (secret isn't really required here)
  3. Try to connect Discord using Oauth2
  4. You'll now see an invalid redirect uri error

Expected Behaviour

We should automatically put the redirect uri to lowercase whenever we display it to the end user, as well as putting it to lowercase when redirecting the user to Discord for the Oauth2 flow.

Screenshots

No response

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant