Repository navigation
"Cannot access delegate without a transaction" obtaining user information in SPI plugin #41530
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Keycloak version: 26.3.1
I sometimes get "Cannot access delegate without a transaction" error accessing user info. I even tried using
KeycloakModelUtils.runJobInTransaction()to ensure I am running in a transaction, only to get this same exception from inside that method.My code:
Error:
So maybe I am doing something fundamentally wrong? what is the recommended method of accessing keycloak info from SPI plugins?
All reactions