> Source: [sk181695](https://support.checkpoint.com/results/sk/sk181695)

# sk181695 - Error when trying to connect with Azure SAML

| Property | Value |
|----------|-------|
| Solution ID | sk181695 |
| Date Created | 2023-11-29 |
| Last Modified | 2026-05-10 |
| Technical Level | Advanced |
| Products | Cloud Firewall |
| Versions | R81.20, R82 |
| OS | Gaia |

## Symptoms

- * `"An error occured in proccesing the SAML response. Make sure the 'Entity ID' is correct, that the response is signed and that this is the Service provider initiated flow"` error message when trying to connect using Azure SAML.

* Running this SAML debug procedure:


  1. Run the command:  
     `$MDS_FWDIR/scripts/cpm_debug.sh -t Saml_Login -c CpRequestAssertionConsumerService 
     org.apache.cxf.rs.security.saml.sso.SAMLSSOResponseValidator -s DEBUG`
  2. `tail -f $MDS_FWDIR/log/cpm.elg > cmp_login_debug.txt`
  3. Try to log in with SmartConsole application while the tail command is running.
  4. Stop tail redirect with ctrl + c
  5. Turn off the debug:  
     `$MDS_FWDIR/scripts/cpm_debug.sh -t Saml_Login -c CpRequestAssertionConsumerService 
     org.apache.cxf.rs.security.saml.sso.SAMLSSOResponseValidator -s INFO`  
     `$MDS_FWDIR/scripts/cpm_debug.sh -r`

  You see similar logs in the *cpm.elg* file:
  `[DATE][TIME] DEBUG dleserver.saml.CpRequestAssertionConsumerService [qtp1442585863-94]: `  
  `AssertionConsumerURL:https://10.248.250.51/cpmws/saml/acs/sso,serverIP:10.248.250.51,IdpServiceAddress:https://login.microsoftonline.com/4067565c-d76c-459a-bebf-0d0a802924f8/saml2,SamlRequestId__3e0aa369-f8ad-4844-abe5-5721e4214af7,SpIdentifier:https://mgmt-sp-73afb34a-9197-4459-b443-516599e3e63e.local/cpmws/saml/acs/id/73afb34a-9197-4459-b443-516599e3e63e,issuerIdSp:https://mgmt-sp-73afb34a-9197-4459-b443-516599e3e63e.local/cpmws/saml/acs/id/73afb34a-9197-4459-b443-516599e3e63e,issuerIdIDP:https://sts.windows.net/4067565c-d76c-459a-bebf-0d0a802924f8/,IdpIssuerResponse:org.opensaml.saml.saml2.core.impl.IssuerImpl@8220d16`  
  `
  `**[DATE][TIME] DEBUG saml.sso.SAMLSSOResponseValidator [qtp1442585863-94]: The Response must be signed!**   
  `
  [DATE][TIME] WARN saml.sso.AbstractRequestAssertionConsumerHandler [qtp1442585863-94]: SamlResponse parameter is invalid`  
  `
  [DATE][TIME] ERROR dleserver.saml.CpRequestAssertionConsumerService [qtp1442585863-94]: doProcessSamlResponse get Exception :HTTP 400 Bad Request javax.ws.rs.BadRequestException: HTTP 400 Bad Request`  
  `
  at org.apache.cxf.ja`

## Cause

Wrong configuration on the Azure application.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
