# F5 SAML Authentication

**URL:** <https://community.f5.com/t/f5-saml-authentication/19549>\
**Category:** Technical Forums\
**Tags:** security\
**Created:** [May 16, 2013, 4:26pm UTC](https://community.f5.com/t/f5-saml-authentication/19549 "2013-05-16T16:26:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_125354](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@Mike\_125354](https://community.f5.com/u/Mike_125354)\
**Post date:** [May 16, 2013, 4:26pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/1 "2013-05-16T16:26:49Z")

</div>

~~One month ago, we opened a case to F5 about SAML Authentication, haven’t got the prober answer yet. Disappointing…~~

~~While still waiting for their answer, I wish here I can reach someone who really understand the issue.~~

~~Many thanks,~~

~~This is the question we asked F5 support team,~~

~~We are testing SAML authentication (Big-IP as SP) on VE (BIGIP-11.3.0.2806.0-scsi.ova). The authentication failed, we saw the log in Access Policy → Reports SAML Agent: /Common/bletchley\_act\_saml\_auth\_ag failed to process signed assertion, error: Digest of SignedInfo mismatch.~~

~~We are bemused by this error message, as we use openSAML java library to generate the saml response (sign the XML). Our IDP works very well with Google and Juniper etc. We double checked the response (you can see it in the attachment, samlres02.txt) Decode it into saml02.xml with ([https://rnd.feide.no/simplesaml/module.php/saml2debug/debug.php](https://rnd.feide.no/simplesaml/module.php/saml2debug/debug.php)) This XML file (with enveloped signature) passed the test under Firefox XML Digital Signature Tool. We also checked it with Java XML Digital Signature API(Validate.java), it also passed. If it is not a known issue on VE BIGIP-11.3.0.2806.0, can you please ask your technical team to have a look?~~

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [May 17, 2013, 12:19pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/2 "2013-05-17T12:19:42Z")

</div>

Mike,

SAML support is brand new in 11.3, so doubtful that most (including myself) have tested every possible third-party integration. The error would seem to indicate that the SP didn’t like the signature, so two things:

1. Can you attach the samlres02.txt document you referred to, and

2. What signature algorithm did you use?

---

<div class="post-metadata">

**Author:** ![Mike\_125354](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@Mike\_125354](https://community.f5.com/u/Mike_125354)\
**Post date:** [May 17, 2013, 1:13pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/3 "2013-05-17T13:13:41Z")

</div>

Thanks Kevin,

I tried to upload a zip file, unfortunately this site does not allow zip and xml file, even java source code.

Here is the txt file.

You can decode it to get XML content, and in xml, you can see the algorithms

DigestMethod Algorithm=“[http://www.w3.org/2000/09/xmldsigsha1](http://www.w3.org/2000/09/xmldsigsha1)”

SignatureMethod Algorithm=“[http://www.w3.org/2000/09/xmldsigrsa-sha1](http://www.w3.org/2000/09/xmldsigrsa-sha1)”

---

<div class="post-metadata">

**Author:** ![Mike\_125354](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@Mike\_125354](https://community.f5.com/u/Mike_125354)\
**Post date:** [May 17, 2013, 4:57pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/4 "2013-05-17T16:57:24Z")

</div>

Hi, Kevin,

I uploaded the zip file(which includes Validate.Java) to my Google Drive, you can download it from

> **[Google Drive: Sign-in](https://accounts.google.com/v3/signin/identifier?continue=https:%2F%2Fdocs.google.com%2Ffile%2Fd%2F0B-RceMGOJfLUNldRODN2aV80Rnc%2Fedit?usp%3Dsharing&followup=https:%2F%2Fdocs.google.com%2Ffile%2Fd%2F0B-RceMGOJfLUNldRODN2aV80Rnc%2Fedit?usp%3Dsharing&osid=1&passive=1209600&service=wise&flowName=GlifWebSignIn&flowEntry=ServiceLogin&dsh=S-1139890871:1790110544830514)**
>
> Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

---

<div class="post-metadata">

**Author:** ![Mike\_125354](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@Mike\_125354](https://community.f5.com/u/Mike_125354)\
**Post date:** [May 29, 2013, 11:13am UTC](https://community.f5.com/t/f5-saml-authentication/19549/5 "2013-05-29T11:13:31Z")

</div>

Hi, Kevin,

Are you a F5 insider, or can you easily approach F5 insiders? If yes, please ask them to take a look of my analysis at

> **[SAML Authentication on F5 Big-IP (Part 3)](http://nano-art.blogspot.com/2013/05/saml-authentication-on-f5-big-ip-part-3.html)**
>
> I told F5 support team, if I got time, I would give them more evidence. This UK bank holiday gave me the chance. I believe the SHA1 algori...

I believe Apache Santuario is doing right, F5 is doing wrong on XML canonicalization.

Many thanks.

---

<div class="post-metadata">

**Author:** ![hoolio](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hoolio](https://community.f5.com/u/hoolio)\
**Post date:** [May 31, 2013, 12:25pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/6 "2013-05-31T12:25:22Z")

</div>

Hi Mike,

Can you post your case number or email me (aaron at f5 dot com). No promises, but I’ll try to make sure Support properly considers the issue.

Thanks, Aaron

---

<div class="post-metadata">

**Author:** ![jussihar1](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/jussihar1/32/33712_2.png) [@jussihar1](https://community.f5.com/u/jussihar1)\
**Post date:** [May 7, 2014, 2:30pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/7 "2014-05-07T14:30:40Z")

</div>

Hello

Any updates on this?

Jussi

---

<div class="post-metadata">

**Author:** ![jussihar\_118259](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jussihar\_118259](https://community.f5.com/u/jussihar_118259)\
**Post date:** [May 7, 2014, 2:30pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/8 "2014-05-07T14:30:40Z")

</div>

Hello

Any updates on this?

Jussi

---

<div class="post-metadata">

**Author:** ![Brad\_146558](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@Brad\_146558](https://community.f5.com/u/Brad_146558)\
**Post date:** [May 7, 2014, 2:32pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/9 "2014-05-07T14:32:50Z")

</div>

Are you experiencing a similar issue?

---

<div class="post-metadata">

**Author:** ![Brad\_146558](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@Brad\_146558](https://community.f5.com/u/Brad_146558)\
**Post date:** [May 7, 2014, 2:32pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/10 "2014-05-07T14:32:50Z")

</div>

Are you experiencing a similar issue?

---

<div class="post-metadata">

**Author:** ![jussihar\_118259](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jussihar\_118259](https://community.f5.com/u/jussihar_118259)\
**Post date:** [May 7, 2014, 2:51pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/11 "2014-05-07T14:51:02Z")

</div>

Yes. IDP is external and I dont have access to it, the IDP admin says all is good there according to logs. F5 apm logs says: modules/Authentication/Saml/SamlSPAgent.cpp func: “verifyAssertionDigest()” line: 3625 Msg: Assertion Content without Signature modules/Authentication/Saml/SamlSPAgent.cpp func: “verifyAssertionSignature()” line: 4037 Msg: ERROR: verifying the digest of SAML R esponse failed to process signed assertion, error: Digest of SignedInfo mismatch

---

<div class="post-metadata">

**Author:** ![jussihar1](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/jussihar1/32/33712_2.png) [@jussihar1](https://community.f5.com/u/jussihar1)\
**Post date:** [May 7, 2014, 2:51pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/12 "2014-05-07T14:51:02Z")

</div>

Yes. IDP is external and I dont have access to it, the IDP admin says all is good there according to logs. F5 apm logs says: modules/Authentication/Saml/SamlSPAgent.cpp func: “verifyAssertionDigest()” line: 3625 Msg: Assertion Content without Signature modules/Authentication/Saml/SamlSPAgent.cpp func: “verifyAssertionSignature()” line: 4037 Msg: ERROR: verifying the digest of SAML R esponse failed to process signed assertion, error: Digest of SignedInfo mismatch

---

<div class="post-metadata">

**Author:** ![boneyard](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/boneyard/32/20419_2.png) [@boneyard](https://community.f5.com/u/boneyard)\
**Post date:** [May 12, 2014, 9:50am UTC](https://community.f5.com/t/f5-saml-authentication/19549/13 "2014-05-12T09:50:15Z")

</div>

using version 11.3? i really would try a new version, like aaron mentioned 11.3 for this first with saml support and many issues have been solved since.

---

<div class="post-metadata">

**Author:** ![boneyard](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/boneyard/32/20419_2.png) [@boneyard](https://community.f5.com/u/boneyard)\
**Post date:** [May 12, 2014, 9:50am UTC](https://community.f5.com/t/f5-saml-authentication/19549/14 "2014-05-12T09:50:15Z")

</div>

using version 11.3? i really would try a new version, like aaron mentioned 11.3 for this first with saml support and many issues have been solved since.

---

<div class="post-metadata">

**Author:** ![jussihar\_118259](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jussihar\_118259](https://community.f5.com/u/jussihar_118259)\
**Post date:** [May 12, 2014, 9:53am UTC](https://community.f5.com/t/f5-saml-authentication/19549/15 "2014-05-12T09:53:41Z")

</div>

I am running 11.5.0 Build 0.0.221 Final

---

<div class="post-metadata">

**Author:** ![jussihar1](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/jussihar1/32/33712_2.png) [@jussihar1](https://community.f5.com/u/jussihar1)\
**Post date:** [May 12, 2014, 9:53am UTC](https://community.f5.com/t/f5-saml-authentication/19549/16 "2014-05-12T09:53:41Z")

</div>

I am running 11.5.0 Build 0.0.221 Final

---

<div class="post-metadata">

**Author:** ![Mike\_62005](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@Mike\_62005](https://community.f5.com/u/Mike_62005)\
**Post date:** [May 12, 2014, 5:46pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/17 "2014-05-12T17:46:41Z")

</div>

I had a battle with F5 support team. If you are interested in it, you can read my blog

[http://nano-art.blogspot.co.uk/2013/05/saml-authentication-on-f5-big-ip-part-1.html](http://nano-art.blogspot.co.uk/2013/05/saml-authentication-on-f5-big-ip-part-1.html)

(1-4)

After a deep digging, I myself finally figured out the root cause, IDP returned a SAML response which the signature was on response part, but F5 expected a response which signature is on assertion part (WantAssertionsSigned=“true”).

F5 error message “Digest of SignedInfo mismatch” was not very helpful in my case. Once I had a insight on SAML (actually the hardest part is XML signature), I told myself what joke it was, as we can easily tell the signature is on response part or assertion part from Reference URI in SAML response content.

---

<div class="post-metadata">

**Author:** ![Filip\_Verlaeckt](https://avatars.discourse-cdn.com/v4/letter/f/a9a28c/32.png) [@Filip\_Verlaeckt](https://community.f5.com/u/Filip_Verlaeckt)\
**Post date:** [July 25, 2014, 1:39pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/18 "2014-07-25T13:39:02Z")

</div>

So what exactly did you change to the configuration to make this work then?

---

<div class="post-metadata">

**Author:** ![Julio\_Navarro](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@Julio\_Navarro](https://community.f5.com/u/Julio_Navarro)\
**Post date:** [March 23, 2015, 5:48pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/19 "2015-03-23T17:48:10Z")

</div>

Hello Mike! How you were able to fix this? Thank you J

---

<div class="post-metadata">

**Author:** ![boneyard](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/boneyard/32/20419_2.png) [@boneyard](https://community.f5.com/u/boneyard)\
**Post date:** [April 5, 2015, 8:00pm UTC](https://community.f5.com/t/f5-saml-authentication/19549/20 "2015-04-05T20:00:32Z")

</div>

from what I read from the blog the issue is with what part of the SAML response is signed. the full response or just the assertion. what is signed in your case Navarro?
