Skip to content

Commit

Permalink
Read a complete assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersAbel committed Feb 12, 2024
1 parent 9ad4827 commit 146ab2a
Show file tree
Hide file tree
Showing 43 changed files with 953 additions and 516 deletions.
2 changes: 2 additions & 0 deletions src/Sustainsys.Saml2.AspNetCore/Saml2Handler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ namespace Sustainsys.Saml2.AspNetCore;

// TODO: OTel Metrics + Activities + logging/traces

// TODO: Fold into main package. Same dependencies => same package.

/// <summary>
/// Saml2 authentication handler
/// </summary>
Expand Down
6 changes: 3 additions & 3 deletions src/Sustainsys.Saml2/Bindings/Saml2Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class Saml2Message
/// Name of the message to be used in query strings, form fields etc.
/// This is typically "SamlRequest" or "SamlResponse".
/// </summary>
public string Name { get; init; } = default!;
public required string Name { get; init; }

/// <summary>
/// RelayState to include with message
Expand All @@ -21,12 +21,12 @@ public class Saml2Message
/// <summary>
/// The XML payload.
/// </summary>
public XmlElement Xml { get; init; } = default!;
public required XmlElement Xml { get; init; }

/// <summary>
/// Destination URL of the message. For outbound messages the URL
/// to send the message to. For inbound, the URL the message was
/// received at.
/// </summary>
public string Destination { get; init; } = default!;
public required string Destination { get; init; }
}
2 changes: 1 addition & 1 deletion src/Sustainsys.Saml2/Common/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ public class Extensions
/// <summary>
/// Collection of conentent nodes read by extension-aware readers.
/// </summary>
public List<object> Contents { get; set; } = new List<object>();
public List<object> Contents { get; set; } = [];
}
Loading

0 comments on commit 146ab2a

Please sign in to comment.