Add security on endpoints and handle 403 responses.

This commit is contained in:
Florian THIERRY committed 2023-11-30 14:56:03 +01:00
1 parent 96345c703a
commit 920fbe489d
7 files changed
+60 -23

No files matched your search

@@ -1,8 +1,10 @@
package org.sportshub.domain.user.model;
import java.util.List;
import java.util.UUID;
public record User(
UUID id,
String password
String password,
List<UserRole> roles
) {}
@@ -0,0 +1,6 @@
package org.sportshub.domain.user.model;
public enum UserRole {
STANDARD,
ADMIN
}