Closed plopezgit closed 9 months ago
this version works on separated project
Manage to implement security on dice roller initial microservice project:
Check: https://github.com/plopezgit/Sprint5_T1_SpringBoot_Dice_Roller_Microservices
Still in QA until project had-off
A player rolling dice:
[x] Add dependencies: stater-security (spring), and Json Web Token
[x] Security package
[x] -- Clase WebSecurityConfig or similar(@ ) // https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter/
[x] --- SecurityFilterChain method return (@ Bean) ==== Secuencia de seguridad
[x] --- UserDetailsService method return (@ Bean) ==== Cargar de usuario en memoria (InMemoryUserDetailsManage)
[x] --- PasswordEncoder method returning a type of encoder ex. new BCryptPasswordEncoder (@ Bean)
[x] Auth db persistance
[x] -- Clase TokenHelper or similar
[x] Clase AuthCredentials
[x] Clase UserDetailsServiceImpl implements UserDetailsService
[x] Clase UserDetailImpl implements UserDetails
[x] Clase JWTAuthenticationFilter extends UsernamePasswordAuthenticationFilter
[x] Clase JWTAuthorizationFilter