[PR #386] [MERGED] Add OAuth backend #727

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

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/386
Author: @Boy132
Created: 6/13/2024
Status: Merged
Merged: 6/13/2024
Merged by: @Boy132

Base: mainHead: feature/oauth-backend


📝 Commits (5)

📊 Changes

12 files changed (+505 additions, -3 deletions)

View changed files

app/Http/Controllers/Auth/OAuthController.php (+61 -0)
app/Http/Controllers/Base/OauthController.php (+44 -0)
📝 app/Models/User.php (+6 -1)
📝 app/Providers/AppServiceProvider.php (+5 -0)
📝 bootstrap/providers.php (+2 -0)
📝 composer.json (+2 -0)
📝 composer.lock (+337 -2)
📝 config/services.php (+12 -0)
📝 database/Factories/UserFactory.php (+1 -0)
database/migrations/2024_06_13_120409_add_oauth_column_to_users.php (+28 -0)
📝 routes/auth.php (+4 -0)
📝 routes/base.php (+3 -0)

📄 Description

Backend for #385.
Doing the frontend only makes sense after we converted the client area to filament too.

For now I only added configs for github and discord for testing. More providers should be added when the frontend is been worked on.
I tested github by manually calling the endpoints, discord is untested but since the underlying system is the same it should also work.


🔄 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/386 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 6/13/2024 **Status:** ✅ Merged **Merged:** 6/13/2024 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `feature/oauth-backend` --- ### 📝 Commits (5) - [`0652c43`](https://github.com/pelican-dev/panel/commit/0652c4343755fc619b4b74497ae437e33887bf3c) add socialite backend - [`cbe3027`](https://github.com/pelican-dev/panel/commit/cbe30277d36c01f48ee3b248f5446b6bce807ba1) fix redirect url - [`89084ad`](https://github.com/pelican-dev/panel/commit/89084ad828f45343ccf96efac3fd8817e5cda927) small cleanup - [`29321bd`](https://github.com/pelican-dev/panel/commit/29321bd973c945210ecb70a0b8acf2c712cb8937) fix "oauth" type - [`5072b02`](https://github.com/pelican-dev/panel/commit/5072b02ad1a6115d035198b814e13d772a9f3857) changes from review ### 📊 Changes **12 files changed** (+505 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `app/Http/Controllers/Auth/OAuthController.php` (+61 -0) ➕ `app/Http/Controllers/Base/OauthController.php` (+44 -0) 📝 `app/Models/User.php` (+6 -1) 📝 `app/Providers/AppServiceProvider.php` (+5 -0) 📝 `bootstrap/providers.php` (+2 -0) 📝 `composer.json` (+2 -0) 📝 `composer.lock` (+337 -2) 📝 `config/services.php` (+12 -0) 📝 `database/Factories/UserFactory.php` (+1 -0) ➕ `database/migrations/2024_06_13_120409_add_oauth_column_to_users.php` (+28 -0) 📝 `routes/auth.php` (+4 -0) 📝 `routes/base.php` (+3 -0) </details> ### 📄 Description Backend for #385. Doing the frontend only makes sense after we converted the client area to filament too. For now I only added configs for `github` and `discord` for testing. More providers should be added when the frontend is been worked on. I tested `github` by manually calling the endpoints, `discord` is untested but since the underlying system is the same it should also work. --- <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 18:46:20 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#727