picketlink/federation — pull request #137 by dcarniel (2012-08-30 14:59:21+00:00)
Title: Add AuthnStatement in generated SAML v2 tokens.

Using Picketlink STS to generate SAML 2.0 token for ADFS ended up showing issues when those tokens got converted to SAML v1 (typically for Office 365 federated authentication). The required element in SAML 1.1 is "AuthenticationStatement"
This patch adds the creation of an "AuthnStatement" when using the SAML20TokenProvider, which is in turn converted into an "AuthenticationStatement" when conversion to SAML 1.1 occurs.

The token created using this patch were successfully tested to go through ADFS and allow proper authentication on Office 365.