No need to check if there are more required actions
This commit is contained in:
parent
d585f2f22f
commit
b541679ef3
1 changed files with 0 additions and 6 deletions
|
@ -414,12 +414,6 @@ public class TokenService {
|
||||||
return Response.status(Response.Status.BAD_REQUEST).type(MediaType.APPLICATION_JSON_TYPE).entity(res)
|
return Response.status(Response.Status.BAD_REQUEST).type(MediaType.APPLICATION_JSON_TYPE).entity(res)
|
||||||
.build();
|
.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())) {
|
if (!client.getLoginName().equals(accessCode.getClient().getLoginName())) {
|
||||||
Map<String, String> res = new HashMap<String, String>();
|
Map<String, String> res = new HashMap<String, String>();
|
||||||
res.put("error", "invalid_grant");
|
res.put("error", "invalid_grant");
|
||||||
|
|
Loading…
Reference in a new issue