forked from Sustainsys/Saml2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
5,846 additions
and
5,859 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
|
||
namespace Sustainsys.Saml2.Metadata | ||
{ | ||
public class AdditionalMetadataLocation | ||
{ | ||
public Uri Uri { get; set; } | ||
public string Namespace { get; set; } | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
.../Metadata/ApplicationServiceDescriptor.cs → ...scriptors/ApplicationServiceDescriptor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
.../Metadata/AttributeAuthorityDescriptor.cs → ...scriptors/AttributeAuthorityDescriptor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ainsys.Saml2/Metadata/IdpSsoDescriptor.cs → ....Metadata/Descriptors/IdpSsoDescriptor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
...etadata/SecurityTokenServiceDescriptor.cs → ...riptors/SecurityTokenServiceDescriptor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
Sustainsys.Saml2/Metadata/SpSsoDescriptor.cs → ...2.Metadata/Descriptors/SpSsoDescriptor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...ys.Saml2/Metadata/WebServiceDescriptor.cs → ...adata/Descriptors/WebServiceDescriptor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Xml; | ||
|
||
namespace Sustainsys.Saml2.Metadata | ||
{ | ||
public class DisplayClaim | ||
{ | ||
public string ClaimType { get; private set; } | ||
public string DisplayName { get; set; } | ||
public string Description { get; set; } | ||
public string DisplayValue { get; set; } | ||
public bool? Optional { get; set; } | ||
public bool WriteOptionalAttribute { get; set; } | ||
public string Value { get; set; } | ||
public ICollection<XmlElement> StructuredValue { get; set; } | ||
public EncryptedValue EncryptedValue { get; set; } | ||
public ConstrainedValue ConstrainedValue { get; set; } | ||
|
||
public DisplayClaim(string claimType) | ||
{ | ||
if (claimType == null) | ||
{ | ||
throw new ArgumentNullException(nameof(claimType)); | ||
} | ||
ClaimType = claimType; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
|
||
namespace Sustainsys.Saml2.Metadata | ||
{ | ||
public class EncryptedData | ||
{ | ||
public string Id { get; set; } | ||
public Uri Type { get; set; } | ||
public string MimeType { get; set; } | ||
public Uri Encoding { get; set; } | ||
public XEncEncryptionMethod EncryptionMethod { get; set; } | ||
public DSigKeyInfo KeyInfo { get; set; } | ||
public CipherData CipherData { get; set; } | ||
public EncryptionProperties EncryptionProperties { get; set; } | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using System; | ||
|
||
namespace Sustainsys.Saml2.Metadata.Helpers | ||
{ | ||
public static class ContactTypeHelpers | ||
{ | ||
public static ContactType Parse(string contactType) | ||
{ | ||
if (contactType == null) | ||
{ | ||
throw new ArgumentNullException(nameof(contactType)); | ||
} | ||
|
||
switch (contactType) | ||
{ | ||
case "technical": | ||
return ContactType.Technical; | ||
|
||
case "support": | ||
return ContactType.Support; | ||
|
||
case "administrative": | ||
return ContactType.Administrative; | ||
|
||
case "billing": | ||
return ContactType.Billing; | ||
|
||
case "other": | ||
return ContactType.Other; | ||
|
||
default: | ||
throw new FormatException($"Unknown contactType value '{contactType}'"); | ||
} | ||
} | ||
|
||
public static string ToString(ContactType contactType) | ||
{ | ||
switch (contactType) | ||
{ | ||
case ContactType.Technical: | ||
return "technical"; | ||
|
||
case ContactType.Support: | ||
return "support"; | ||
|
||
case ContactType.Administrative: | ||
return "administrative"; | ||
|
||
case ContactType.Billing: | ||
return "billing"; | ||
|
||
case ContactType.Other: | ||
return "other"; | ||
|
||
default: | ||
throw new InvalidOperationException( | ||
$"Unknown ContactType enumeration value {contactType}"); | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.