John Stafford John Stafford - 2 months ago 42
MySQL Question

Implementing JWT Spring Security Token Store with Hibernate?

I am working on implementing my first production grade jwt token store and came across the sql for these tables, Working with an in-memory jwt token store will not work for production of course. I have come across in memory token store to jdbc token store configurations. Is it possible to do this with Hibernate? Because these tables don't have PK , I guess I will create a column for Hibernate that I could autoincrement that is the primary key for the table and id for Hibernate?


You don't need a database for a JWT token (the data are stored in the token). Sometimes it's useful to have an approval store, but that's a different concern. I wouldn't use hibernate for that if I were you but there's nothing stopping you.