mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Edit profile page returns 500 when any OAuth2 provider is enabled #200
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @IxPrumxI on GitHub (Dec 1, 2024).
Originally assigned to: @Boy132 on GitHub.
Current Behavior
When adding oauth2 to .env following https://github.com/pelican-dev/panel/blob/main/config/auth.php#L28-L137. The page returns 500 with the logs reading:
Expected Behavior
Edit profile page to show up with the added oauth2 providers with the ability to connect to them.
Steps to Reproduce
Add any oauth2 provider from https://github.com/pelican-dev/panel/blob/main/config/auth.php#L28-L137 to the panel.
Observe as setting OAUTH_anyprovider_ENABLED=true causes the panel to responds with 500.
Panel Version
1.0.0-beta14
Wings Version
1.0.0-beta7
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
Is there an existing issue for this?
@rmartinoscar commented on GitHub (Dec 1, 2024):
Hey i just tried it with Discord and i cannot reproduce, did you enter correct credentials in .env ?


And is your oauth callback correct ?
(Those have been regenerated fyi)
Im in discord General
https://discord.gg/pelican-panel
@PeterStrick commented on GitHub (Dec 1, 2024):
A bit different here, I already use Azure as my OAuth Provider in multiple Applications even Filament ones, so I installed the Azure OAuth Provider with
composer require socialiteproviders/microsoft-azure, made a new entry inconfig/auth.phpand my.envfor Azure and it seems to work just fineconfig/auth.phpsnippet used:(this will likely revert back with Panel Updates, but in the Future being able to add custom Socialite Providers through Plugins would be a neat idea)
https://github.com/user-attachments/assets/481838f9-8443-4a6d-bfe6-1faaedb731c4
@Boy132 commented on GitHub (Dec 1, 2024):
You need to increase the memory limit for php/ php-fpm.
Yes, plugins will be able to easily add new providers. For now your way is correct to add custom providers.
@IxPrumxI commented on GitHub (Dec 2, 2024):
I just tried with a new oauth app from discord and still didn't work. Same error.
I bumped the memory limit from 128M till 1024M then it started crashing php-fpm instead of an error causing the whole panel to stop working if I try to access the edit profile page.