Created
December 13, 2018 15:08
-
-
Save eldermoraes/76eb2314a1aaf25d28889a1fa3f570e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@HEAD | |
@Path("/{token}") | |
public Response checkAuthentication(@PathParam("token") String token) { | |
if (authSession.getAuthenticated().containsKey(token)) { | |
return Response.ok().build(); | |
} | |
return Response.status(Response.Status.UNAUTHORIZED).build(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment