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

Magic Link continuation error in KC 26.1.2 #111

Open
rtufisi opened this issue Feb 28, 2025 · 0 comments
Open

Magic Link continuation error in KC 26.1.2 #111

rtufisi opened this issue Feb 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@rtufisi
Copy link
Collaborator

rtufisi commented Feb 28, 2025

Repro steps:

  1. Try login in a realm using Magic Link Continuation flow

Image

Stack traces:


ERROR: duplicate key value violates unique constraint "constraint_offl_us_ses_pk2"
  Detail: Key (user_session_id, offline_flag)=('fc90ff7c-3ecb-4fd4-b9f9-cebee8bf3ac5', '0') already exists.
Batch entry 0 insert into public.OFFLINE_USER_SESSION (BROKER_SESSION_ID,CREATED_ON,DATA,LAST_SESSION_REFRESH,REALM_ID,USER_ID,VERSION,OFFLINE_FLAG,USER_SESSION_ID) values ((NULL),('[1740748166-1740748197]'::int4),('{"ipAddress":"188.27.128.252","authMethod":"openid-connect","rememberMe":false,"started":0,"notes":{"KC_DEVICE_NOTE":"eyJpcEFkZHJlc3MiOiIxODguMjcuMTI4LjI1MiIsIm9zIjoiTGludXgiLCJvc1ZlcnNpb24iOiJVbmtub3duIiwiYnJvd3NlciI6IkNocm9tZS8xMjguMC4wIiwiZGV2aWNlIjoiT3RoZXIiLCJsYXN0QWNjZXNzIjowLCJtb2JpbGUiOmZhbHNlfQ==","AUTH_TIME":"[1740748166-1740748197]","authenticators-completed":"{\"e4cd9ce7-e191-4c49-9992-a65cc3166a44\":[1740748166-1740748197]}"},"state":"LOGGED_IN"}'),('[1740748166-1740748197]'::int4),('razvan-cluster'),('f09b0687-42ee-427e-965c-a642a42fdae8'),('0'::int4),('0'),('*')) was aborted: ERROR: duplicate key value violates unique constraint "constraint_offl_us_ses_pk2"   Detail: Key (user_session_id, offline_flag)=('*', '0') already exists.  Call getNextException to see other errors in the batch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant