#invalid OAuth2 redirect_url
1 messages · Page 1 of 1 (latest)
Okay i got this working but
500 | SERVER ERROR
Send discord oAuth link
Metro Hosting: Affordable and reliable web hosting solutions tailored to meet the needs of individuals and businesses. Enjoy fast loading speeds, 24/7 customer support, and secure hosting with our range of plans, from shared hosting to dedicated servers. Build and grow your online presence with Metro Hosting today!
This is not oAuth link
This is callback url of your CtrlPanel
The oAuth of the bot?
Click Link account button, and send link of the page where invalid OAuth2 redirect_url occurs
okay
Metro Hosting: Affordable and reliable web hosting solutions tailored to meet the needs of individuals and businesses. Enjoy fast loading speeds, 24/7 customer support, and secure hosting with our range of plans, from shared hosting to dedicated servers. Build and grow your online presence with Metro Hosting today!
Send logs
is this what you meant?
Try go to /admin/overview/sync
eh
yes
"Pterodactyl Synced"
yes
what issue
500 | SERVER ERROR
when dooes that happen
Can you please fetch the error logs, so we can assist you better regarding this error.
tail -n 100 /var/www/controlpanel/storage/logs/laravel.log | nc pteropaste.com 99
when i try to login with discord
it looks like you haven't setup discord correctly
let me record a quick video
It seems that you haven't set up discord 0auth correctly, but fear not, the docs come to the rescue! https://CtrlPanel.gg/docs/Installation/additional-configuration#discord-auth
Extra information about URL Formatting
Any URL saved in your settings should never end with a /slash; CtrlPanel adds this / automatically to any URL, adding an extra
/ will break the URL!
GOOD Example:
https://CtrlPanel.gg
BAD EXAMPLE:
https://CtrlPanel.gg/
When configuring discord-auth, we will automatically use your APP_URL to create the appropriate URLs needed for discord-0auth. Make sure your URLs are correct!
When using SSL-Encryption (https://) double-check that all your URLs start with https:// instead of http://
After editing the .env File you have to clear the Cache:
php artisan cache:clear
php artisan config:clear
ok?
my url is correct
you can't go to that link manually
discord has to bring you there
when you login, it will add some stuff to the url
if you got your client_id and client_secret setup, and configured the redirect needed
you can go to the profile page and do the discord login
is it supposed to be like this? (Please don't hate on me, I'm just dumb this much)
So i'm correct
you configured your client_id and client_secret within ctrlpanel?
you added the link to discord like the example shows?
yes
this is correct
okay so what happens when you click on the discord login bit? assuming the client and secret are valid?
are you behind a cloudflare proxy?
Yes the store is behind a cloudflare proxy
`okay so what happens when you click on the discord login bit? assuming the client and secret are valid?``
Yes the store is behind a cloudflare proxy
did you setup full strict within cloudflare?
Yes
?
Yes I set it to "full strict"
x3 now: okay so what happens when you click on the discord login bit? assuming the client and secret are valid?
it takes me here
and when i click on authorize it shows the "500 | SERVER ERROR" PAGE
Can you please fetch the error logs, so we can assist you better regarding this error.
tail -n 100 /var/www/controlpanel/storage/logs/laravel.log | nc pteropaste.com 99
can you get the logs plz?
Can you please fetch the error logs, so we can assist you better regarding this error.
tail -n 100 /var/www/controlpanel/storage/logs/laravel.log | nc pteropaste.com 99
Sure
when i go to the discord login you send it does in fact add the code and state to the url which is needed
so i'm not quite sure what the problem is
mmm unfortunatly this error is pretty shitty and i don't know what to make of it
oh
did you already clear all caches while configuring?
php artisan cache:clear php artisan config:clear
Not really
you should do that and try again and see what happens 🙂
you need to execute these commands in the project root
not add sudo
you are also already root man
you need to execute these commands in the folder you installed ctrlpanel at
oh okay
ofc there is no artisan file in your root directory
it has
if you go to this route without params you get an error
its just opera hiding it
aah lame,
mmm sorry i don't really know what the problem is, the error of the package is to vague for me to check
it would require more debugging at location, it also has worked for like 2 years now so i don;t know why it ain't working for you unfortunatly
the only last thing you could try is
- check if your nginx config for ctrlpanel is using php8.1
- restart the php-fpm (you can google or ask gpt for the exact command)
rm -rf vendorandcomposer install --no-dev --optimize-autoloader(inside the project root like earlier)
otherwise i have no clue, unfortunatly that package throws the most useless error
i can only guess that the client_secret might be incorrect
you can try and refresh that one aswel
i g2g, wish you the best of luck
yeah man it was it