Prototypische implementierug der UserService und Controller

This commit is contained in:
2025-12-02 22:25:27 +01:00
parent 6f7185236c
commit 07f709da7c
18 changed files with 342 additions and 48 deletions
@@ -43,7 +43,7 @@ public class TokenService {
.subject(auth.getName())
.claim("roles",roles)
.claim("userId", userDTO.getId())
.claim("username", userDTO.getUsername())
.claim("privateName", userDTO.getPrivateName())
.build();
return jwtEncoder.encode(JwtEncoderParameters.from(claims)).getTokenValue();
}