Skip to content

Commit

Permalink
Version 1.0.6. Switched to NET462, cleaned up some code, verified NET…
Browse files Browse the repository at this point in the history
…462 support for CNG cert store.
  • Loading branch information
romanpolunin committed Dec 5, 2016
1 parent c131795 commit 3b757c8
Show file tree
Hide file tree
Showing 16 changed files with 176 additions and 186 deletions.
8 changes: 4 additions & 4 deletions Build/Fedlet.1.0.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>RomanPolunin.SamlFedlet</id>
<version>1.0.5</version>
<version>1.0.6</version>
<authors>Roman Polunin</authors>
<owners>Roman Polunin</owners>
<title>Fedlet, a SAML SSO Toolkit</title>
Expand All @@ -25,9 +25,9 @@ Forked that to make functionality and stability improvements.
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>SAML SSO</tags>
<copyright>Portions copyright (c) Roman Polunin 2015-2016. Copyright (c) Sun Microsystems 2019-2010</copyright>
<releaseNotes>Fedlet 1.0.5.0 - July 2016
Fixed wrong attribute name for AssertionConsumerServiceIndex in the outgoing SAMLRequest.
Added default value for NameIDPolicyFormat ("unspecified") if not supplied by client code.</releaseNotes>
<releaseNotes>Fedlet 1.0.6.0 - Dec 2016
Switched targeting to .NET 462.
Expects .Net framework to be able to work with CNG certs without additional hacks.</releaseNotes>
</metadata>
<files>
<file src="**\*" target="" exclude="*.ps1" />
Expand Down
10 changes: 5 additions & 5 deletions Build/buildnuget.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ Remove-Item -Path .\LICENSE.txt -Force
Remove-Item -Path .\CHANGES.txt -Force
Remove-Item -Path .\README -Force

md lib\Net45
Copy-Item ..\Fedlet\bin\Release\Fedlet.dll .\lib\Net45
Copy-Item ..\Fedlet\bin\Release\Fedlet.xml .\lib\Net45
Copy-Item ..\Fedlet\bin\Release\Fedlet.pdb .\lib\Net45
md lib\Net462
Copy-Item ..\Fedlet\bin\Release\Fedlet.dll .\lib\Net462
Copy-Item ..\Fedlet\bin\Release\Fedlet.xml .\lib\Net462
Copy-Item ..\Fedlet\bin\Release\Fedlet.pdb .\lib\Net462

Copy-Item ..\NOTICES.txt .\
Copy-Item ..\LICENSE.txt .\
Copy-Item ..\CHANGES.txt .\
Copy-Item ..\README .\

..\..\..\Nuget\nuget.exe pack Fedlet.1.0.nuspec
..\..\Nuget\nuget.exe pack Fedlet.1.0.nuspec
9 changes: 8 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
Fedlet 1.0.5.0 - July 2016
Fedlet 1.0.6.0 - Dec 2016

Switched targeting to .NET 462.
Expects .Net framework to be able to work with CNG certs and SHA256 without additional hacks.
Some code cleanup.


Fedlet 1.0.5.0 - July 2016

Fixed wrong attribute name for AssertionConsumerServiceIndex in the outgoing SAMLRequest.
Added default value for NameIDPolicyFormat ("unspecified") if not supplied by client code.
Expand Down
2 changes: 1 addition & 1 deletion Fedlet.UnitTests/Fedlet.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Fedlet.UnitTests</RootNamespace>
<AssemblyName>Fedlet.UnitTests</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions Fedlet.UnitTests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@

[assembly: Guid("75b42c20-1ed1-41fd-b5cd-e587a72c2a92")]

[assembly: AssemblyVersion("1.0.2.0")]
[assembly: AssemblyFileVersion("1.0.2.0")]
[assembly: AssemblyVersion("1.0.6.0")]
[assembly: AssemblyFileVersion("1.0.6.0")]
2 changes: 1 addition & 1 deletion Fedlet/Fedlet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Sun.Identity</RootNamespace>
<AssemblyName>Fedlet</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SignAssembly>false</SignAssembly>
<AssemblyOriginatorKeyFile>
Expand Down
4 changes: 2 additions & 2 deletions Fedlet/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@

[assembly: Guid("2155869F-784E-4882-976E-61AB0F9642F3")]

[assembly: AssemblyVersion("1.0.5.0")]
[assembly: AssemblyFileVersion("1.0.5.0")]
[assembly: AssemblyVersion("1.0.6.0")]
[assembly: AssemblyFileVersion("1.0.6.0")]
3 changes: 2 additions & 1 deletion Fedlet/Saml2/ArtifactResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*/

using System;
using System.Security.Cryptography.Xml;
using System.Xml;
using System.Xml.XPath;
using Sun.Identity.Properties;
Expand Down Expand Up @@ -68,7 +69,7 @@ public ArtifactResponse(string artifactResponse)
_xml = new XmlDocument {PreserveWhitespace = true};
_xml.LoadXml(artifactResponse);
_nsMgr = new XmlNamespaceManager(_xml.NameTable);
_nsMgr.AddNamespace("ds", "http://www.w3.org/2000/09/xmldsig#");
_nsMgr.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
_nsMgr.AddNamespace("saml", "urn:oasis:names:tc:SAML:2.0:assertion");
_nsMgr.AddNamespace("samlp", "urn:oasis:names:tc:SAML:2.0:protocol");

Expand Down
3 changes: 2 additions & 1 deletion Fedlet/Saml2/AuthnResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
using System;
using System.Collections;
using System.Globalization;
using System.Security.Cryptography.Xml;
using System.Xml;
using System.Xml.XPath;
using Sun.Identity.Properties;
Expand All @@ -54,7 +55,7 @@ public AuthnResponse(string samlResponse)
_xml = new XmlDocument {PreserveWhitespace = true};
_xml.LoadXml(samlResponse);
_nsMgr = new XmlNamespaceManager(_xml.NameTable);
_nsMgr.AddNamespace("ds", "http://www.w3.org/2000/09/xmldsig#");
_nsMgr.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
_nsMgr.AddNamespace("saml", "urn:oasis:names:tc:SAML:2.0:assertion");
_nsMgr.AddNamespace("samlp", "urn:oasis:names:tc:SAML:2.0:protocol");
}
Expand Down
3 changes: 2 additions & 1 deletion Fedlet/Saml2/IdentityProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*/

using System.Security.Cryptography.X509Certificates;
using System.Security.Cryptography.Xml;
using System.Text;
using System.Xml;
using Sun.Identity.Properties;
Expand Down Expand Up @@ -78,7 +79,7 @@ public IdentityProvider(XmlDocument metadata, XmlDocument extendedMetadata, Saml
_metadata = metadata;
_metadataNsMgr = new XmlNamespaceManager(_metadata.NameTable);
_metadataNsMgr.AddNamespace("md", "urn:oasis:names:tc:SAML:2.0:metadata");
_metadataNsMgr.AddNamespace("ds", "http://www.w3.org/2000/09/xmldsig#");
_metadataNsMgr.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);

_extendedMetadata = extendedMetadata;
_extendedMetadataNsMgr = new XmlNamespaceManager(_extendedMetadata.NameTable);
Expand Down
5 changes: 3 additions & 2 deletions Fedlet/Saml2/LogoutRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
using System;
using System.Collections.Specialized;
using System.Globalization;
using System.Security.Cryptography.Xml;
using System.Text;
using System.Xml;
using System.Xml.XPath;
Expand Down Expand Up @@ -70,7 +71,7 @@ public LogoutRequest(string samlRequest)
_xml = new XmlDocument {PreserveWhitespace = true};

_nsMgr = new XmlNamespaceManager(_xml.NameTable);
_nsMgr.AddNamespace("ds", "http://www.w3.org/2000/09/xmldsig#");
_nsMgr.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
_nsMgr.AddNamespace("saml", "urn:oasis:names:tc:SAML:2.0:assertion");
_nsMgr.AddNamespace("samlp", "urn:oasis:names:tc:SAML:2.0:protocol");

Expand Down Expand Up @@ -111,7 +112,7 @@ public LogoutRequest(
_xml = new XmlDocument {PreserveWhitespace = true};

_nsMgr = new XmlNamespaceManager(_xml.NameTable);
_nsMgr.AddNamespace("ds", "http://www.w3.org/2000/09/xmldsig#");
_nsMgr.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
_nsMgr.AddNamespace("saml", "urn:oasis:names:tc:SAML:2.0:assertion");
_nsMgr.AddNamespace("samlp", "urn:oasis:names:tc:SAML:2.0:protocol");

Expand Down
3 changes: 2 additions & 1 deletion Fedlet/Saml2/LogoutResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

using System;
using System.Collections.Specialized;
using System.Security.Cryptography.Xml;
using System.Text;
using System.Xml;
using System.Xml.XPath;
Expand Down Expand Up @@ -68,7 +69,7 @@ public LogoutResponse(string samlResponse)
_xml = new XmlDocument {PreserveWhitespace = true};

_nsMgr = new XmlNamespaceManager(_xml.NameTable);
_nsMgr.AddNamespace("ds", "http://www.w3.org/2000/09/xmldsig#");
_nsMgr.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
_nsMgr.AddNamespace("saml", "urn:oasis:names:tc:SAML:2.0:assertion");
_nsMgr.AddNamespace("samlp", "urn:oasis:names:tc:SAML:2.0:protocol");

Expand Down
15 changes: 0 additions & 15 deletions Fedlet/Saml2/Saml2Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,21 +200,6 @@ public static class Saml2Constants
/// </summary>
public const string SignatureAlgorithm = "SigAlg";

/// <summary>
/// Constant for the DSA type of signature algorithm.
/// </summary>
public const string SignatureAlgorithmDsa = "http://www.w3.org/2000/09/xmldsig#dsa-sha1";

/// <summary>
/// Constant for the RSA type of signature algorithm, SHA1.
/// </summary>
public const string SignatureAlgorithmRsaSha1 = "http://www.w3.org/2000/09/xmldsig#rsa-sha1";

/// <summary>
/// Constant for the RSA type of signature algorithm, SHA256.
/// </summary>
public const string SignatureAlgorithmRsaSha256 = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";

/// <summary>
/// Constant for the Signature parameter.
/// </summary>
Expand Down
Loading

0 comments on commit 3b757c8

Please sign in to comment.