Skip to content

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Oct 10, 2024

Purpose

Some OIDC identity providers provide a random value in the "sub" field instead of an identifying ID.
It created duplicate users in the database.

Proposal

This migration fixes the issue by removing the duplicate users after having updated all the references to the old users.

@AntoLC AntoLC added bug Something isn't working backend labels Oct 10, 2024
@AntoLC AntoLC requested review from qbey and sampaccoud October 10, 2024 12:01
@AntoLC AntoLC self-assigned this Oct 10, 2024
Some OIDC identity providers provide a random
value in the "sub" field instead of an
identifying ID.
It created duplicate users in the database.
This migration fixes the issue by removing the
duplicate users after having updated all
the references to the old users.
@AntoLC AntoLC force-pushed the fix/duplicate_users branch from d6ee4a2 to 831dfe3 Compare October 10, 2024 13:41
@AntoLC AntoLC marked this pull request as ready for review October 10, 2024 13:42
@AntoLC AntoLC merged commit 0d5b238 into main Oct 10, 2024
16 of 17 checks passed
@AntoLC AntoLC deleted the fix/duplicate_users branch October 10, 2024 14:23
@AntoLC AntoLC mentioned this pull request Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants