title: ADFS 2.0 claim rules for consuming SAML2 assertions
body: <p>I am using ADFS 2.0 as a service provider and Shibboleth as an IDP which issues SAML2 attributes in the form of:</p>
  
  <pre><code>&lt;saml2:AttributeStatement&gt;
          &lt;saml2:Attribute FriendlyName="nameidentifier" Name="nameidentifier" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"&gt;
              &lt;saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string"&gt;testuser&lt;/saml2:AttributeValue&gt;
          &lt;/saml2:Attribute&gt;
  &lt;/saml2:AttributeStatement&gt;
  </code></pre>
  
  <p>does anyone know how to setup a claim rule to consume this attribute?</p>
  
  <p>I have tried the following but it didn't work:</p>
  
  <pre><code>c:[Type == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier", Properties["http://schemas.xmlsoap.org/ws/2005/05/identity/claimproperties/format"] == "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"] =&gt; issue(claim = c);
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks</p>