Search in sources :

Example 1 with SamlEcpProfileService

use of org.keycloak.protocol.saml.profile.ecp.SamlEcpProfileService in project keycloak by keycloak.

the class SamlService method soapBinding.

/**
 * Handles SOAP messages. Chooses the correct response path depending on whether the message is of type ECP
 * @param inputStream the data of the request.
 * @return The response to the SOAP message
 */
@POST
@NoCache
@Consumes({ "application/soap+xml", MediaType.TEXT_XML })
public Response soapBinding(InputStream inputStream) {
    SamlEcpProfileService bindingService = new SamlEcpProfileService(realm, event, destinationValidator);
    ResteasyProviderFactory.getInstance().injectProperties(bindingService);
    return bindingService.authenticate(inputStream);
}
Also used : SamlEcpProfileService(org.keycloak.protocol.saml.profile.ecp.SamlEcpProfileService) POST(javax.ws.rs.POST) Consumes(javax.ws.rs.Consumes) NoCache(org.jboss.resteasy.annotations.cache.NoCache)

Aggregations

Consumes (javax.ws.rs.Consumes)1 POST (javax.ws.rs.POST)1 NoCache (org.jboss.resteasy.annotations.cache.NoCache)1 SamlEcpProfileService (org.keycloak.protocol.saml.profile.ecp.SamlEcpProfileService)1