John Stafford John Stafford - 1 year ago 232
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download