stonith404 / pingvin-share

A self-hosted file sharing platform that combines lightness and beauty, perfect for seamless and efficient file sharing.
https://stonith404.github.io/pingvin-share/
BSD 2-Clause "Simplified" License
2.79k stars 205 forks source link

🐛 Bug Report: Discord Login #550

Closed COMPLEXWASTAKEN closed 1 month ago

COMPLEXWASTAKEN commented 1 month ago

👟 Reproduction steps

have discord auth enabled and you try to login with discord first it opens the url into https://domain.com/auth/domain.com/api/oauth/auth/discord and after you put that normal url into the browser to try the auth it gives {"redirect_uri": ["Not a well formed URL."]}

👍 Expected behavior

first the login button for discord should open it in a page and after you get to discord it should not throw that browser

👎 Actual Behavior

it should allow u to login to discord

🌐 Browser

opera gx

stonith404 commented 1 month ago

Which redirect uri did you specify on the Discord website? Additionally, can you share a screen recording of the bug?

COMPLEXWASTAKEN commented 1 month ago

the url for it was https://share.vexhub.tech/auth/api/oauth/callback/discord and the video is

https://github.com/user-attachments/assets/f076a270-7463-441c-8a69-5d0ebbae53a6

stonith404 commented 1 month ago

I think the issue is that you've set the app URL to share.vexhub.tech instead of https://share.vexhub.tech in the admin settings of Pingvin share.

Additionally, you should use https://share.vexhub.tech/api/oauth/callback/discord as the callback URL instead of https://share.vexhub.tech/auth/api/oauth/callback/discord

COMPLEXWASTAKEN commented 1 month ago

alr thanks that worked

DrMemoryFish commented 3 weeks ago

alr thanks that worked

hey, i heard that you got it all sorted. I'm not really understanding how to set up discord oauth all up from a fresh start, i followed this guide, but I'm not really understanding it. could you please help me by providing detailed instructions.

I've already got my domain name, its just the discord stuff that i don't understand, and how to link it to this application or whatever.

thanks