03-07-2022 08:43 AM
we configure ASA AnyConnect VPN with Microsoft Azure MFA through SAML. when we connect VPN its given an error "Authentication failed due to problem retrieving the single sign-on cookie". we have done below troubleshooting.
webvpn_login_primary_username: SAML assertion validation failed
[SAML] consume_assertion: The profile cannot verify a signature on the message"
Solved! Go to Solution.
08-15-2023 04:55 AM
i resolved this issue by removing Dynamic access policy from ASA.
03-07-2022 08:49 AM
@Manish Manwal judging by the error "cannot verify a signature on the message" - I wonder if the certificate used is not trusted and you've not imported?
03-07-2022 09:00 AM
hi Rob,
identity provider and service provider both certificate has imported in firewall and both are valid til November
i can also see below error in debug. can you help here ?
func=xmlSecOpenSSLEvpSignatureVerify:file=signatures.c:line=493:obj=rsa-sha256:subj=EVP_VerifyFinal:error=18:data do not match:signature do not match
.
03-07-2022 08:42 PM
It's usually due to the Azure certificate having changed. Microsoft updates the certificate when you finalize the app setup in Azure. Double check that the certificate you imported on the ASA is the same one currently presented by Azure.
03-08-2022 02:32 AM
Hi Marvin,
certificate is same, i also download latest certificate and imported to ASA. but same issue.
03-08-2022 02:49 AM
after import certificate and disable and re enable SAML identity provider, we not receive above error, now we getting "login Denied" error.
can you help here. below is the debug logs
saml_ac_token_remove: SAML ac token being looked 73289FA84675DBCB096DB69
saml token ID 73289FA84675DBCB096DB69 removed from table
[SAML] saml_is_idp_internal: getting SAML config for tg SSL-VPN
#0x00007fb121de6290 (GET). Request line:/+webvpn+/webvpn_logout.html
#0x00007fb121de6290 Hand-off to emWeb.
03-08-2022 04:29 AM
"Login denied" is typically something on the iDP side. You should be able to check the logs there for more details.
I have seen some people successfully use Fiddler app to debug the https communications between the client and iDP during a SAML authentication process.
https://docs.telerik.com/fiddler/configure-fiddler/tasks/decrypthttps
03-09-2022 02:41 AM
i cant find any error in fiddler regarding vpn error.
one more error we are getiing in debuging : Dynamic access policy terminated the connection.
but no policy created yet for remote vpn
10-06-2022 05:36 PM
I have the SAML authentication taking extreme delay to load the username page, password entry, then verification.
All that takes 7 minutes but at the end is connected with no slowness or asp drops.
Any idea?
06-24-2023 12:16 PM
I am having same issue. Anyconnect authentication failed due to problem retrieving the single sign-on cookie. Configuration is correct, Certs are correct, re-apply config,etc.. One of my ASA is working but the other is having the issue. I get this from debug.
Jun 24 12:37:14 [SAML] consume_assertion: When looking for an assertion we did not found it.
Jun 24 12:37:14
[SAML] consume_assertion:
[saml] webvpn_login_primary_username: SAML assertion validation failed
any help would be appreciated.
06-24-2023 02:15 PM
Do traffic capture and see the traffic flow behavior.
The root cause for my case was that the firewall blocked a Microsoft website that was used for the authentication process for SAML.
The website was blocked because the website was not listed in MS documentation of SAML’s firewall requirements.
So, I did multiple captures for many users when I noticed all of them trying to reach that website. I opened the ports for that website and immediately fixed it.
06-24-2023 05:56 PM
Verified, and just to make sure I set allow any any to make sure I am not blocking anything and still same issue.
08-15-2023 04:54 AM
check if there is any DAP configured in ASA
08-15-2023 04:55 AM
i resolved this issue by removing Dynamic access policy from ASA.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide