Nowadays I am developing with a little proyect which uses spring security and spring session. When the user is authenticated in the system with spring security (basic Authorization), spring session creates the user session automatically within a table named SPRING_SESSION (and other two tables). The main table is formed by the
PRINCIPAL_NAME. Like in the application.properties I have selected the propperty
spring.session.store-type=jdbc, then spring session creates and use the tables automatically.
I want to use JWT like a token in the system, because it is generic. however the user want to have a session table everytime to manager the users. I want to user
SPRING_SESSION, for this reazon I want to change the
SESSION_ID value (token) by the JWT. I have looked for how to do it (change the
SESSION_ID that Spring session create by default, and change it by a custom value), but I did not luck, I do not know if it is possible.
Thanks for your time.