Add security on endpoints and handle 403 responses.

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

View File

@@ -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
) {}

View File

@@ -0,0 +1,6 @@
package org.sportshub.domain.user.model;
public enum UserRole {
STANDARD,
ADMIN
}