Get security context (access token) of current user inside SPI

Is it possible to get security context (specifically the access token) of current user inside SPI?
I’m interacting with a jms broker and want to push the security context to the message.

Check the tokens method at: https://www.keycloak.org/docs-api/11.0/javadocs/org/keycloak/models/KeycloakSession.html you should have this available at a SPI:https://www.keycloak.org/docs/latest/server_development/index.html#_providers

Hope it helps!

@luisalves00 Did you manage to solve your problem? :slight_smile:

Not really. I think we couldn’t find a was to access it.