This repository was archived by the owner on Feb 27, 2026. It is now read-only.
[WIP] Fix issue with OIDC Google auto-registration for users#314
Merged
danielalves96 merged 2 commits intonextfrom Oct 21, 2025
Merged
[WIP] Fix issue with OIDC Google auto-registration for users#314danielalves96 merged 2 commits intonextfrom
danielalves96 merged 2 commits intonextfrom
Conversation
Prevent new user creation when autoRegister is disabled for auth providers Co-authored-by: danielalves96 <62755605+danielalves96@users.noreply.github.com>
Copilot stopped work on behalf of
danielalves96 due to an error
October 21, 2025 12:15
Contributor
|
@copilot this error maybe related with linter, check |
Contributor
Author
I've verified all linting and type checking across the entire monorepo. All checks pass successfully: ✅ Server app: No linter errors found. The code change follows all code quality standards. Commit: 166435f Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
anthony0030
pushed a commit
to anthony0030/Palmr
that referenced
this pull request
Jan 13, 2026
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: danielalves96 <62755605+danielalves96@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
findOrCreateUsermethod doesn't checkautoRegistersettingfindOrCreateUsermethodSummary
Fixed the issue where OIDC Google users were being created even with auto-registration disabled.
Changes Made
File:
apps/server/src/modules/auth-providers/service.tsAdded a check in the
findOrCreateUsermethod to verify ifautoRegisteris disabled before creating a new user. When disabled, the system throws an error that is properly handled by the existing error handling in the controller.Behavior
Security
Original prompt
Fixes #276
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.