Skip to content
Snippets Groups Projects
Commit 50a9ccf3 authored by fabiovandewaeter's avatar fabiovandewaeter
Browse files

Merge branch 'dev'

parents 1cecabf0 561b6f05
No related branches found
No related tags found
No related merge requests found
......@@ -35,13 +35,10 @@ public class AuthFilter implements ContainerRequestFilter {
}
private boolean isValidToken(String token) {
// You can implement your own validation logic here (e.g., checking against a
// database)
return USERS.containsKey(token); // Just an example where token is checked against a map
}
private static Map<String, String> loadUsers() {
// Implémenter le chargement depuis un fichier (ex. users.properties)
Map<String, String> res = new HashMap<>();
res.put("valid-token-1", "User1");
res.put("valid-token-2", "User2");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment