Skip to content
Snippets Groups Projects
Commit 561b6f05 authored by fabiovandewaeter's avatar fabiovandewaeter
Browse files

fix

parent 57716383
Branches
Tags
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