[PR #1573] [MERGED] Auto create missing users when using oauth #1462

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

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1573
Author: @Boy132
Created: 8/4/2025
Status: Merged
Merged: 8/7/2025
Merged by: @Boy132

Base: mainHead: boy132/auto-create-oauth-user


📝 Commits (9)

  • 1a9ff89 add option to automatically create missing users when using oauth to login
  • 52379a8 use service to create the user
  • 84bf981 make sure username and email are valid
  • 4c4369f Merge remote-tracking branch 'upstream/main' into boy132/auto-create-oauth-user
  • fa24729 add translation to toggle
  • 1e11f47 rename function
  • 539f8d9 let service create random username
  • 7ceee67 always validate username
  • b313a29 small cleanup

📊 Changes

6 files changed (+80 additions, -26 deletions)

View changed files

📝 app/Extensions/OAuth/OAuthSchemaInterface.php (+2 -0)
📝 app/Extensions/OAuth/Schemas/OAuthSchema.php (+20 -0)
📝 app/Http/Controllers/Auth/OAuthController.php (+46 -19)
📝 app/Services/Subusers/SubuserCreationService.php (+0 -7)
📝 app/Services/Users/UserCreationService.php (+11 -0)
📝 lang/en/admin/setting.php (+1 -0)

📄 Description

Adds a new option to all providers to automatically create (& link) missing users. This is turned off by default.
These users will still recieve a "Account created" mail with a password reset link, if they wish to also setup a panel password.

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/1573 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 8/4/2025 **Status:** ✅ Merged **Merged:** 8/7/2025 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `boy132/auto-create-oauth-user` --- ### 📝 Commits (9) - [`1a9ff89`](https://github.com/pelican-dev/panel/commit/1a9ff899808df855116aea71bf30ac796c1bc46e) add option to automatically create missing users when using oauth to login - [`52379a8`](https://github.com/pelican-dev/panel/commit/52379a89cb8a183f6bf94764e66a8b7898bece83) use service to create the user - [`84bf981`](https://github.com/pelican-dev/panel/commit/84bf981a4ade814b523d93788bee8683addefa7a) make sure username and email are valid - [`4c4369f`](https://github.com/pelican-dev/panel/commit/4c4369f617b369c2aff7ac28c8eb20775c7a63c1) Merge remote-tracking branch 'upstream/main' into boy132/auto-create-oauth-user - [`fa24729`](https://github.com/pelican-dev/panel/commit/fa2472931c5ed3f228c7035ee334a6d23d5c2da5) add translation to toggle - [`1e11f47`](https://github.com/pelican-dev/panel/commit/1e11f47d28a0c0ea4ceee0677ceb8d48afa78ad5) rename function - [`539f8d9`](https://github.com/pelican-dev/panel/commit/539f8d99b2a75db3295dc175e71dc93f43d05c0c) let service create random username - [`7ceee67`](https://github.com/pelican-dev/panel/commit/7ceee673a6fee786832b75c2c0a2731516ca7bba) always validate username - [`b313a29`](https://github.com/pelican-dev/panel/commit/b313a2929ececc36689b889aa58ec613e54c1b95) small cleanup ### 📊 Changes **6 files changed** (+80 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `app/Extensions/OAuth/OAuthSchemaInterface.php` (+2 -0) 📝 `app/Extensions/OAuth/Schemas/OAuthSchema.php` (+20 -0) 📝 `app/Http/Controllers/Auth/OAuthController.php` (+46 -19) 📝 `app/Services/Subusers/SubuserCreationService.php` (+0 -7) 📝 `app/Services/Users/UserCreationService.php` (+11 -0) 📝 `lang/en/admin/setting.php` (+1 -0) </details> ### 📄 Description Adds a new option to all providers to automatically create (& link) missing users. This is turned off by default. These users will still recieve a "Account created" mail with a password reset link, if they wish to also setup a panel password. <img width="1439" height="268" alt="grafik" src="https://github.com/user-attachments/assets/4b962aa8-cf07-46af-a0e0-3347f4056cee" /> --- <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:49:05 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#1462