You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Have capital letters in the hostname configured in core/config.php
Enter the redirect url as specified in StaffCP in the Discord developer portal and configure the client ID (secret isn't really required here)
Try to connect Discord using Oauth2
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
The text was updated successfully, but these errors were encountered:
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
core/config.php
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
The text was updated successfully, but these errors were encountered: