diff --git a/services/src/main/java/org/keycloak/services/resources/AccountService.java b/services/src/main/java/org/keycloak/services/resources/AccountService.java index f2f4951233..75cc5a7134 100755 --- a/services/src/main/java/org/keycloak/services/resources/AccountService.java +++ b/services/src/main/java/org/keycloak/services/resources/AccountService.java @@ -486,6 +486,7 @@ public class AccountService extends AbstractSecuredLocalService { @Path("revoke-grant") @POST + @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public Response processRevokeGrant(final MultivaluedMap formData) { if (auth == null) { return login("applications"); diff --git a/services/src/main/java/org/keycloak/services/resources/admin/AuthenticationManagementResource.java b/services/src/main/java/org/keycloak/services/resources/admin/AuthenticationManagementResource.java index 0128425953..c2f39f1dd1 100755 --- a/services/src/main/java/org/keycloak/services/resources/admin/AuthenticationManagementResource.java +++ b/services/src/main/java/org/keycloak/services/resources/admin/AuthenticationManagementResource.java @@ -986,6 +986,7 @@ public class AuthenticationManagementResource { @Path("config") @POST @NoCache + @Consumes(MediaType.APPLICATION_JSON) public Response createAuthenticatorConfig(AuthenticatorConfigRepresentation rep) { auth.requireManage();