expire-token #3

Merged
v4l3n71n merged 7 commits from expire-token into master 2022-05-15 11:38:16 +00:00
Showing only changes of commit 83d7ec19bc - Show all commits

View File

@ -72,6 +72,10 @@ public class TokenRessource {
return Response.status(Response.Status.NOT_ACCEPTABLE).build();
}
// or jwt = parser.decrypt(jwtCookie, secret);
String kid = jwt.getClaim(Claims.kid).toString();
if(!kid.equals(users.id.toString())){
return Response.status(Response.Status.UNAUTHORIZED).build();
}
return Response.status(Response.Status.OK).build();
}