Skip to content

Commit

Permalink
Merge pull request #2042 from pedroigor/KEYCLOAK-2336
Browse files Browse the repository at this point in the history
[KEYCLOAK-2336] - Support ECP clients using SOAP 1.1
  • Loading branch information
stianst committed Jan 18, 2016
2 parents bb3f036 + 7ec52eb commit 79eb425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -554,7 +554,7 @@ public Response idpInitiatedSSO(@PathParam("client") String clientUrlName, @Quer
}

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

Expand Down
Expand Up @@ -108,7 +108,7 @@ public void testSuccessfulEcpFlow() throws Exception {

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());

Expand Down

0 comments on commit 79eb425

Please sign in to comment.