fix use authorization cookie only to check

This commit is contained in:
Giuseppe Digilio
2020-01-09 18:36:41 +01:00
parent 15087db2b6
commit 4210605503

View File

@@ -87,7 +87,7 @@ public class JWTTokenRestAuthenticationServiceImpl implements RestAuthentication
@Override
public EPerson getAuthenticatedEPerson(HttpServletRequest request, Context context) {
String token = getToken(request, true);
String token = getToken(request, false);
try {
EPerson ePerson = jwtTokenHandler.parseEPersonFromToken(token, request, context);
return ePerson;