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 bug: SCIM-Deleting a user retains the externalId #1323

Merged
merged 2 commits into from
Jan 12, 2021

Conversation

smatting
Copy link
Contributor

@smatting smatting commented Jan 12, 2021

This PR fixes this bug:
Deleting a user via SCIM when there is no IdP won't remove the entry from spar.scim_external_ids.
This might be a cause for issues such as SQSERVICES-179

The test testDeletedUsersFreeExternalIdNoIdp proves the bug and the fix.

The function userToExternalId was removed because its name is misleading. The only call site of this function is refactored.

@smatting smatting changed the title Fix bug: SCIM-Deleting a retains the externalId Fix bug: SCIM-Deleting a user retains the externalId Jan 12, 2021
@smatting
Copy link
Contributor Author

smatting commented Jan 12, 2021

All spar and brig integration tests pass locally.

@smatting
Copy link
Contributor Author

All spar and brig integration tests pass locally after merge.

@smatting smatting merged commit b6f4722 into develop Jan 12, 2021
@smatting smatting deleted the SQSSERVICES-179-fix-external-id branch January 12, 2021 13:47
@smatting
Copy link
Contributor Author

Failing test is flaky un most likely unrelated https://wearezeta.atlassian.net/browse/SQSERVICES-189

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