Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(auth): automatically resolve username collisions when creating oauth2 users #4714

Merged
merged 1 commit into from
Sep 21, 2024

Conversation

axiomofjoy
Copy link
Contributor

If a username is already taken when creating a new OAuth2 user, randomly generate a suffix and append to the username to avoid collisions.

resolves #4675

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Sep 21, 2024
@axiomofjoy axiomofjoy changed the base branch from main to auth September 21, 2024 06:25
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. size:S This PR changes 10-29 lines, ignoring generated files. labels Sep 21, 2024
@axiomofjoy axiomofjoy force-pushed the xander/avoid-username-collisions branch from b29d9f3 to 118641d Compare September 21, 2024 21:27
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Sep 21, 2024
@axiomofjoy axiomofjoy merged commit 946b9c5 into auth Sep 21, 2024
16 checks passed
@axiomofjoy axiomofjoy deleted the xander/avoid-username-collisions branch September 21, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[auth][oauth] automatically resolve username collisions when creating oauth2 users
2 participants