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?
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?