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

sources/scim: fix user creation (duplicate userName) #12547

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sia-mfierro
Copy link

@sia-mfierro sia-mfierro commented Jan 3, 2025

Details

According to the SCIM standard both id and userName must be unique.
The current behaviour only rejects duplicate ids, and this PR fixes it.
A new test case has been added: test_user_create_duplicate_by_username, and run.
Results from https://scimvalidator.microsoft.com/ have been saved and replayed for local testing.


Checklist

  • Local tests pass (sudo poetry run python -m manage test authentik/sources/scim/tests/test_users.py)
  • The code has been formatted (make lint-fix)

@sia-mfierro sia-mfierro requested a review from a team as a code owner January 3, 2025 07:12
Copy link

netlify bot commented Jan 3, 2025

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit eab1f0e
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/67778dc9167d210008d1a54b

Copy link

netlify bot commented Jan 3, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit eab1f0e
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/67778dc98b3c7e00084bf0fb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant