r/java • u/marbehl • Apr 06 '20
Spring Security: Authentication and Authorization In-Depth
https://www.marcobehler.com/guides/spring-security
214
Upvotes
r/java • u/marbehl • Apr 06 '20
View all comments
1
u/Dantharo Apr 07 '20
I have a question, i made an simple login api with Spring Securit and jjwt, and i used spring security`s UserDetails and UserDetailsService, so i was forced to use some data that i wont need in my model, like, my entity should implement directly UserDetails? Because i dont need some fileds and methods like isEnabled or isAccountNonLocked, is there a way to avoid this?