Skip to content

Commit 9f9895d

Browse files
committed
Version 4.6.0-beta1 with support for Saml2AuthnRequest Conditions.
1 parent 81a0b4c commit 9f9895d

File tree

8 files changed

+22
-27
lines changed

8 files changed

+22
-27
lines changed

src/ITfoxtec.Identity.Saml2.Mvc/ITfoxtec.Identity.Saml2.Mvc.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
<PackageTags>SAML SAML 2.0 SAML2.0 SAML2 SAML 2 SAML-P SAMLP SSO Identity Provider (IdP) and Relying Party (RP) Authentication Metadata OIOSAML NemLog-in ASP.NET MVC</PackageTags>
1515
<NeutralLanguage>en-US</NeutralLanguage>
1616
<PackageIconUrl>https://itfoxtec.com/favicon.ico</PackageIconUrl>
17-
<AssemblyVersion>4.5.2.0</AssemblyVersion>
18-
<FileVersion>4.5.2.0</FileVersion>
17+
<AssemblyVersion>4.6.0.0</AssemblyVersion>
18+
<FileVersion>4.6.0.0</FileVersion>
1919
<Copyright>Copyright © 2021</Copyright>
20-
<Version>4.5.2</Version>
20+
<Version>4.6.0-beta1</Version>
2121
<SignAssembly>true</SignAssembly>
2222
<AssemblyOriginatorKeyFile>ITfoxtec.SAML2.snk</AssemblyOriginatorKeyFile>
2323
<DelaySign>false</DelaySign>

src/ITfoxtec.Identity.Saml2.MvcCore/ITfoxtec.Identity.Saml2.MvcCore.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
<PackageTags>SAML SAML 2.0 SAML2.0 SAML2 SAML 2 SAML-P SAMLP SSO Identity Provider (IdP) Relying Party (RP) Authentication Metadata OIOSAML NemLog-in ASP.NET MVC Core</PackageTags>
1717
<NeutralLanguage>en-US</NeutralLanguage>
1818
<PackageIconUrl>https://itfoxtec.com/favicon.ico</PackageIconUrl>
19-
<AssemblyVersion>4.5.2.0</AssemblyVersion>
20-
<FileVersion>4.5.2.0</FileVersion>
19+
<AssemblyVersion>4.6.0.0</AssemblyVersion>
20+
<FileVersion>4.6.0.0</FileVersion>
2121
<Copyright>Copyright © 2021</Copyright>
22-
<Version>4.5.2</Version>
22+
<Version>4.6.0-beta1</Version>
2323
<SignAssembly>true</SignAssembly>
2424
<AssemblyOriginatorKeyFile>ITfoxtec.SAML2.snk</AssemblyOriginatorKeyFile>
2525
<DelaySign>false</DelaySign>

src/ITfoxtec.Identity.Saml2/ITfoxtec.Identity.Saml2.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Tested for compliance with AD FS, Azure AD and Azure AD B2C. Furthermore, the Da
2323
<PackageTags>SAML SAML 2.0 SAML2.0 SAML2 SAML 2 SAML-P SAMLP SSO Identity Provider (IdP) Relying Party (RP) Authentication Metadata OIOSAML NemLog-in</PackageTags>
2424
<NeutralLanguage>en-US</NeutralLanguage>
2525
<PackageIconUrl>https://itfoxtec.com/favicon.ico</PackageIconUrl>
26-
<AssemblyVersion>4.5.2.0</AssemblyVersion>
27-
<FileVersion>4.5.2.0</FileVersion>
26+
<AssemblyVersion>4.6.0.0</AssemblyVersion>
27+
<FileVersion>4.6.0.0</FileVersion>
2828
<Copyright>Copyright © 2021</Copyright>
29-
<Version>4.5.2</Version>
29+
<Version>4.6.0-beta1</Version>
3030
<SignAssembly>true</SignAssembly>
3131
<AssemblyOriginatorKeyFile>ITfoxtec.SAML2.snk</AssemblyOriginatorKeyFile>
3232
<DelaySign>false</DelaySign>

src/ITfoxtec.Identity.Saml2/Schemas/Condition.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class Condition
1616
/// </summary>
1717
public const string elementName = Saml2Constants.Message.Conditions;
1818

19-
public List<ConditionAbstract> Items { get; set; }
19+
public List<ICondition> Items { get; set; }
2020

2121
public DateTimeOffset? NotOnOrAfter { get; set; }
2222

@@ -36,17 +36,14 @@ protected virtual IEnumerable<XObject> GetXContent()
3636
yield return new XAttribute(Saml2Constants.AssertionNamespaceNameX, Saml2Constants.AssertionNamespaceX);
3737
if (NotOnOrAfter.HasValue)
3838
{
39-
yield return new XAttribute(Saml2Constants.Message.NotOnOrAfter,
40-
NotOnOrAfter.Value.UtcDateTime.ToString(Schemas.Saml2Constants.DateTimeFormat,
41-
CultureInfo.InvariantCulture));
39+
yield return new XAttribute(Saml2Constants.Message.NotOnOrAfter, NotOnOrAfter.Value.UtcDateTime.ToString(Saml2Constants.DateTimeFormat, CultureInfo.InvariantCulture));
4240
}
4341

4442
if (NotBefore.HasValue)
4543
{
46-
yield return new XAttribute(Saml2Constants.Message.NotBefore,
47-
NotBefore.Value.UtcDateTime.ToString(Schemas.Saml2Constants.DateTimeFormat,
48-
CultureInfo.InvariantCulture));
44+
yield return new XAttribute(Saml2Constants.Message.NotBefore, NotBefore.Value.UtcDateTime.ToString(Saml2Constants.DateTimeFormat, CultureInfo.InvariantCulture));
4945
}
46+
5047
if (Items != null)
5148
{
5249
foreach (var condition in Items)

src/ITfoxtec.Identity.Saml2/Schemas/Conditions/AudienceRestriction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace ITfoxtec.Identity.Saml2.Schemas.Conditions
55
{
6-
public class AudienceRestriction : ConditionAbstract
6+
public class AudienceRestriction : ICondition
77
{
88
/// <summary>
99
/// The XML Element name of this class
@@ -12,7 +12,7 @@ public class AudienceRestriction : ConditionAbstract
1212

1313
public List<Audience> Audiences { get; set; }
1414

15-
public override XElement ToXElement()
15+
public XElement ToXElement()
1616
{
1717
var envelope = new XElement(Saml2Constants.AssertionNamespaceX + elementName);
1818

src/ITfoxtec.Identity.Saml2/Schemas/Conditions/ConditionAbstract.cs renamed to src/ITfoxtec.Identity.Saml2/Schemas/Conditions/ICondition.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace ITfoxtec.Identity.Saml2.Schemas.Conditions
44
{
5-
public abstract class ConditionAbstract
5+
public interface ICondition
66
{
7-
public abstract XElement ToXElement();
7+
XElement ToXElement();
88
}
99
}

src/ITfoxtec.Identity.Saml2/Schemas/Conditions/OneTimeUse.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Xml.Linq;
1+
using System.Xml.Linq;
42

53
namespace ITfoxtec.Identity.Saml2.Schemas.Conditions
64
{
7-
public class OneTimeUse : ConditionAbstract
5+
public class OneTimeUse : ICondition
86
{
97
/// <summary>
108
/// The XML Element name of this class
119
/// </summary>
1210
const string elementName = Saml2Constants.Message.OneTimeUse;
1311

14-
public override XElement ToXElement()
12+
public XElement ToXElement()
1513
{
1614
var envelope = new XElement(Saml2Constants.AssertionNamespaceX + elementName);
1715

src/ITfoxtec.Identity.Saml2/Schemas/Conditions/ProxyRestriction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace ITfoxtec.Identity.Saml2.Schemas.Conditions
55
{
6-
public class ProxyRestriction : ConditionAbstract
6+
public class ProxyRestriction : ICondition
77
{
88
/// <summary>
99
/// The XML Element name of this class
@@ -14,7 +14,7 @@ public class ProxyRestriction : ConditionAbstract
1414

1515
public uint? Count { get; set; }
1616

17-
public override XElement ToXElement()
17+
public XElement ToXElement()
1818
{
1919
var envelope = new XElement(Saml2Constants.AssertionNamespaceX + elementName);
2020

0 commit comments

Comments
 (0)