You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But this upsert statement doesn't protect from a duplicate uid, hence the error. How did it happen, does it make sense and do we need to investigate further? I'm not sure but I think we need to understand it before choosing how to fix it.
Yes, and if you are already logged into Keycloak and try to connect another OFN account then Keycloak doesn't prompt you to log in. I'm not sure what the best way to resolve this is. Should the user be guided to Keycloak to log out before trying again? Does Keycloak have a URL where you can choose the account even though you are logged into one already?
ℹ️ Funded Feature. Please track ALL ASSOCIATED WORK under the associated tracking code #11678 DFC Orders
Error in OpenFoodNetwork UK
ActiveRecord::RecordNotUnique in omniauth_callbacks#openid_connect
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_oidc_accounts_on_uid"
DETAIL: Key (uid)=([email protected]) already exists.
View on Bugsnag
Stacktrace
View full stacktrace
Created by David Cook via Bugsnag
The text was updated successfully, but these errors were encountered: