[PR #718] [MERGED] Add Oauth frontend and backend improvements #921

Closed
opened 2026-02-04 19:02:18 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/718
Author: @Boy132
Created: 11/18/2024
Status: Merged
Merged: 11/30/2024
Merged by: @Boy132

Base: mainHead: oauth/auth-frontend


📝 Commits (10+)

  • 9ae24fb better oauth provider loading
  • 2b1ce02 add auth frontend
  • 7b20730 add configs for all default providers
  • 793a14d add more default providers
  • d89b273 add env variables to enable oauth providers
  • b6c5256 small refactor to link/ unlink routes
  • 028fea7 add oauth tab to (admin) profile
  • 886d047 use redirects instead of exceptions
  • a483142 add notification if no oauth user is found
  • 0a673da use import in config

📊 Changes

10 files changed (+322 additions, -63 deletions)

View changed files

📝 app/Filament/Pages/Auth/Login.php (+23 -0)
📝 app/Filament/Resources/UserResource/Pages/EditProfile.php (+51 -0)
📝 app/Http/Controllers/Auth/OAuthController.php (+20 -2)
app/Http/Controllers/Base/OAuthController.php (+0 -43)
📝 app/Providers/AppServiceProvider.php (+13 -3)
📝 composer.json (+2 -0)
📝 composer.lock (+100 -0)
📝 config/auth.php (+113 -0)
📝 config/services.php (+0 -12)
📝 routes/base.php (+0 -3)

📄 Description

Adds oauth buttons to the filament auth.
Improves the backend and makes adding providers easier.
Adds more default providers.

No oauth for the old auth/ old client area auth! So only admins can use oauth for now!

Note: There is no "automatic registration" when using oauth. If you login via oauth but there is no linked user found, you will be redirected to the login page!

grafik
grafik


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/718 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 11/18/2024 **Status:** ✅ Merged **Merged:** 11/30/2024 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `oauth/auth-frontend` --- ### 📝 Commits (10+) - [`9ae24fb`](https://github.com/pelican-dev/panel/commit/9ae24fb9d9cb0eecf42060b3d1c6058ebc542499) better oauth provider loading - [`2b1ce02`](https://github.com/pelican-dev/panel/commit/2b1ce024fd1c6b5324a288b6eae16ea5181a40c7) add auth frontend - [`7b20730`](https://github.com/pelican-dev/panel/commit/7b207306c35f8c4136f423f931593385edfc7b90) add configs for all default providers - [`793a14d`](https://github.com/pelican-dev/panel/commit/793a14dfa356d2bf9145ab67e6343c4f0cb0e84d) add more default providers - [`d89b273`](https://github.com/pelican-dev/panel/commit/d89b273628affe87c887a1a45672d6e0a35ef010) add env variables to enable oauth providers - [`b6c5256`](https://github.com/pelican-dev/panel/commit/b6c525615d9d4f3650d51cf5c92b42f2563d8377) small refactor to link/ unlink routes - [`028fea7`](https://github.com/pelican-dev/panel/commit/028fea7a008ee1220e55196201835c270e1c6294) add oauth tab to (admin) profile - [`886d047`](https://github.com/pelican-dev/panel/commit/886d047ccb6e35095d0502b9cbc56b2c145f2d8a) use redirects instead of exceptions - [`a483142`](https://github.com/pelican-dev/panel/commit/a483142f4d7f590379a71349b3999f0e8c4a728e) add notification if no oauth user is found - [`0a673da`](https://github.com/pelican-dev/panel/commit/0a673daa68d778c234c0bee8f3907a434e4dbd14) use import in config ### 📊 Changes **10 files changed** (+322 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `app/Filament/Pages/Auth/Login.php` (+23 -0) 📝 `app/Filament/Resources/UserResource/Pages/EditProfile.php` (+51 -0) 📝 `app/Http/Controllers/Auth/OAuthController.php` (+20 -2) ➖ `app/Http/Controllers/Base/OAuthController.php` (+0 -43) 📝 `app/Providers/AppServiceProvider.php` (+13 -3) 📝 `composer.json` (+2 -0) 📝 `composer.lock` (+100 -0) 📝 `config/auth.php` (+113 -0) 📝 `config/services.php` (+0 -12) 📝 `routes/base.php` (+0 -3) </details> ### 📄 Description Adds oauth buttons to the filament auth. Improves the backend and makes adding providers easier. Adds more default providers. **No oauth for the old auth/ old client area auth! So only admins can use oauth for now!** Note: There is no "automatic registration" when using oauth. If you login via oauth but there is no linked user found, you will be redirected to the login page! ![grafik](https://github.com/user-attachments/assets/0d0ec7e5-8332-4c80-ad1a-b0962e71da92) ![grafik](https://github.com/user-attachments/assets/e3c0bea2-6b3e-49e2-a944-819e57d96d94) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 19:02:18 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#921