No need to check if there are more required actions

This commit is contained in:
Stian Thorgersen 2013-09-21 12:51:09 +01:00
parent d585f2f22f
commit b541679ef3

View file

@ -414,12 +414,6 @@ public class TokenService {
return Response.status(Response.Status.BAD_REQUEST).type(MediaType.APPLICATION_JSON_TYPE).entity(res)
.build();
}
if (accessCode.getRequiredActions() != null && !accessCode.getRequiredActions().isEmpty()) {
Map<String, String> res = new HashMap<String, String>();
res.put("error", "invalid_grant");
res.put("error_description", "Actions required");
return Response.status(Response.Status.BAD_REQUEST).type(MediaType.APPLICATION_JSON_TYPE).entity(res).build();
}
if (!client.getLoginName().equals(accessCode.getClient().getLoginName())) {
Map<String, String> res = new HashMap<String, String>();
res.put("error", "invalid_grant");