Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM SSO SAML Integration (Microsoft Azure AD) - Logout issue

Avatar

Level 2

We have recently integrated AEM 6.5.5 with SAML based SSO. Able to login to AEM, with SSO authentication. But we were unable to logout. 

 

Configuration values in OSGI SAML Authentication Handler

handleLogout="true"

logoutUrl="https://login.microsoftonline.com/common/wsfederation?wa\=wsignout1.0"

and tried

logoutUrl="https://login.microsoftonline.com/<abc-xyz>/wsfederation?wa=wsignout1.0"

 

The authentication service user has Keystore configured as well.

 

When the logout request generates from AEM, it is throwing as,

srikrishnank190_0-1598940057970.png

 

Note: If we hit the logout URL directly on the browser, it works fine

 

Logs were on trace level,

*DEBUG* com.adobe.granite.auth.saml.SamlAuthenticationHandler Private key of SP not provided: Cannot sign Authn request.
*DEBUG*  com.adobe.granite.auth.saml.util.SamlReader Signature verification failed for [samlp:Response: null]. No signature.

 

1 Accepted Solution

Avatar

Correct answer by
Employee

RE : com.adobe.granite.auth.saml.util.SamlReader Signature verification failed for

 

Either the Assertion or the Signature is missing from the SAMLRequest/SAMLResponse

 

Capture a HAR containing the entire network trace of the logout and base-64 decrypt the POST data to understand what is messed up. 

View solution in original post

3 Replies

Avatar

Community Advisor

@srikrishnank190 Thank you for reaching Adobe Experience League Community. Can you please post your SAML configuration file here?

 

have you checked, Handle Logout option in your SAML configuration? If it is working fine if we hit directly in the browser, it should not be an issue with IDP.

 

 

 

Avatar

Level 2

Hi Shashi,

 

Here is the OSGI Configuration for SAML Authentication Handler,

# Configuration created by Apache Sling JCR Installer
identitySyncType="default"
keyStorePassword="xxxxxxx"
service.ranking=I"5002"
idpHttpRedirect=B"false"
createUser=B"true"
defaultRedirectUrl="/"
userIDAttribute="emailaddress"
idpIdentifier=""
assertionConsumerServiceURL=""
defaultGroups=["aem-xxx"]
storeSAMLResponse=B"true"
signatureMethod="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
idpCertAlias="ab-cdef#1597308296857"
addGroupMemberships=B"true"
path=["/"]
digestMethod="http://www.w3.org/2001/04/xmlenc#sha256"
synchronizeAttributes=["givenname\=profile/givenName","surname\=profile/familyName","emailaddress\=profile/email"]
clockTolerance=I"60"
groupMembershipAttribute="groups"
idpUrl="https://login.microsoftonline.com/abc-def-xyz/saml2"
logoutUrl="https://login.microsoftonline.com/abc-def-xyz/wsfederation?wa=wsignout1.0"
serviceProviderEntityId="ijk-lnmop-adobe-dev"
handleLogout=B"true"
userIntermediatePath=""
spPrivateKeyAlias=""
useEncryption=B"false"
nameIdFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:transient" 

Avatar

Correct answer by
Employee

RE : com.adobe.granite.auth.saml.util.SamlReader Signature verification failed for

 

Either the Assertion or the Signature is missing from the SAMLRequest/SAMLResponse

 

Capture a HAR containing the entire network trace of the logout and base-64 decrypt the POST data to understand what is messed up.