[KEYCLOAK-2336] - Support ECP clients using SOAP 1.1

This commit is contained in:
Pedro Igor 2016-01-18 11:01:59 -02:00
parent ded919c0a6
commit 7ec52ebc2b
2 changed files with 2 additions and 2 deletions

View file

@ -554,7 +554,7 @@ public class SamlService extends AuthorizationEndpointBase {
}
@POST
@Consumes("application/soap+xml")
@Consumes({"application/soap+xml",MediaType.TEXT_XML})
public Response soapBinding(InputStream inputStream) {
SamlEcpProfileService bindingService = new SamlEcpProfileService(realm, event);

View file

@ -108,7 +108,7 @@ public class SamlEcpProfileTest {
Response authenticationResponse = ClientBuilder.newClient().target(singleSignOnService).request()
.header(HttpHeaders.AUTHORIZATION, authHeader)
.post(Entity.entity(DocumentUtil.asString(authenticationRequest), "application/soap+xml"));
.post(Entity.entity(DocumentUtil.asString(authenticationRequest), "text/xml"));
assertEquals(OK.getStatusCode(), authenticationResponse.getStatus());