This repository has been archived by the owner on Sep 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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
40 changed files
with
8,528 additions
and
0 deletions.
There are no files selected for viewing
5,904 changes: 5,904 additions & 0 deletions
5,904
src/FederationMetadataGenerator/FedMetadataInstallation/FedMetadataInstallation.isl
Large diffs are not rendered by default.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
src/FederationMetadataGenerator/FedMetadataInstallation/FedMetadataInstallation.isproj
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,35 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<!-- Select a Product Configuration --> | ||
<InstallShieldProductConfiguration>Express</InstallShieldProductConfiguration> | ||
<!-- Select a Visual Studio Configuration / InstallShield Release --> | ||
<Configuration>Debug</Configuration> | ||
<InstallShieldRelease>$(Configuration)</InstallShieldRelease> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<!-- The InstallShieldProject item selects the project to build --> | ||
<InstallShieldProject Include="$(MSBuildProjectDirectory)\$(MSBuildProjectName).isl"/> | ||
<!-- The InstallShieldReleaseFlags sets Release Flags --> | ||
<!--<InstallShieldReleaseFlags Include=""/>--> | ||
<!-- The InstallShieldMergeModulePath specifies what directories are | ||
searched for Merge Modules --> | ||
<!--<InstallShieldMergeModulePath Include=""/>--> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<!-- The ProjectReference items refer to any Visual Studio solutions you want to automatically probe for Project Output Groups. --> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<!-- The TaggedOutputs items allow you to explicitly add extra files to output groups. Each item must include both Name and OutputGroup, as well as TargetPath metadata values. --> | ||
<!--<TaggedOutputs Include="C:\My Test Exe.exe"> | ||
<Name>My Test Project</Name> | ||
<OutputGroup>Primary output</OutputGroup> | ||
<TargetPath>My Test Exe.exe</TargetPath> | ||
</TaggedOutputs> --> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildExtensionsPath)\InstallShield\2010Limited\InstallShield.targets"/> | ||
<ItemGroup> | ||
<ProjectReference Include="..\FedMetadataTool\FedMetadataTool.csproj"> | ||
<Name>FedMetadataTool</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
</Project> |
32 changes: 32 additions & 0 deletions
32
src/FederationMetadataGenerator/FedMetadataTool/App.config
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,32 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<configSections> | ||
<section name="metadataToolDefaults" | ||
type="CedarLogic.Identity.Configuration.FederationMetadataSection, FedMetadataTool" /> | ||
</configSections> | ||
|
||
<metadataToolDefaults> | ||
<claimTypes> | ||
<add name="Issuer" | ||
namespace="http://schemas.xmlsoap.org/claim/Issuer" /> | ||
<add name="Email" | ||
namespace="http://schemas.xmlsoap.org/claim/Email" /> | ||
<add name="FirstName" | ||
namespace="http://schemas.xmlsoap.org/claim/FirstName" /> | ||
<add name="LastName" | ||
namespace="http://schemas.xmlsoap.org/claim/LastName" /> | ||
<add name="CostCenter" | ||
namespace="http://schemas.xmlsoap.org/claim/CostCenter" /> | ||
<add name="Phone" | ||
namespace="http://schemas.xmlsoap.org/claim/Phone" /> | ||
</claimTypes> | ||
<protocolSupport> | ||
<add name="WsTrustNs" | ||
namespace="http://docs.oasis-open.org/ws-sx/ws-trust/200512" /> | ||
<add name="WsTrustSoapNs" | ||
namespace="http://schemas.xmlsoap.org/ws/2005/02/trust" /> | ||
<add name="WsTrustNs" | ||
namespace="http://docs.oasis-open.org/ws-sx/ws-trust/200512" /> | ||
</protocolSupport> | ||
</metadataToolDefaults> | ||
</configuration> |
16 changes: 16 additions & 0 deletions
16
src/FederationMetadataGenerator/FedMetadataTool/AttributeName.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.ComponentModel; | ||
|
||
namespace CedarLogic.Identity | ||
{ | ||
[TypeConverter(typeof(ExpandableObjectConverter))] | ||
public class AttributeName | ||
{ | ||
[Description("Enter the name of the assertion attribute")] | ||
public string Name { get; set; } | ||
} | ||
|
||
} |
95 changes: 95 additions & 0 deletions
95
src/FederationMetadataGenerator/FedMetadataTool/ClassDiagram1.cd
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,95 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ClassDiagram MajorVersion="1" MinorVersion="1"> | ||
<Class Name="CedarLogic.Identity.AttributeName" Collapsed="true"> | ||
<Position X="7.5" Y="0.5" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=</HashCode> | ||
<FileName>AttributeName.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.Contact" Collapsed="true"> | ||
<Position X="12.75" Y="0.5" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AAAAAAAAAiAAAAAEAAAEAAAAAAAAAAAAAAAAJAAAAAA=</HashCode> | ||
<FileName>Contact.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.Form1" Collapsed="true"> | ||
<Position X="9.25" Y="1.5" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>BAAAAAwAACIAAhgJAACAAAAKAAIEAAAaAIAAAaAQIAA=</HashCode> | ||
<FileName>Form1.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.CertificateHelper" Collapsed="true"> | ||
<Position X="9.25" Y="0.5" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAEAAA=</HashCode> | ||
<FileName>Helpers\CertificateHelper.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.LocalCertificatesConverter" Collapsed="true"> | ||
<Position X="11" Y="1.5" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE=</HashCode> | ||
<FileName>Helpers\LocalCertificatesConverter.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.MetadataHelperExtensions" Collapsed="true"> | ||
<Position X="9.25" Y="2.5" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AAAAAAAAAAAAAAAAABAAAAAAAAAAAAAEAAAAAAAAAAA=</HashCode> | ||
<FileName>Helpers\MetadataHelperExtensions.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.MetadataHelper" Collapsed="true"> | ||
<Position X="7.5" Y="2.5" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AAAAABAAAAAAAAAAAAAAAAAAhAIgAAAAAAAAAAAAAAA=</HashCode> | ||
<FileName>MetadataHelper.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.MetadataDescriptor" Collapsed="true"> | ||
<Position X="2.75" Y="0.5" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AAAAAAAAAAKAAAAAAAAEAAAAAAAAAAAAAQAAAAAAgAA=</HashCode> | ||
<FileName>MetadataTypes\MetadataDescriptor.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.SamlData" Collapsed="true"> | ||
<Position X="1.5" Y="1.75" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AIAAAAAAAAGAAABAAAAAAIAAAAAAAAAgAAAAAAAAIAA=</HashCode> | ||
<FileName>MetadataTypes\SamlData.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.SamlIdpData" Collapsed="true"> | ||
<Position X="0.5" Y="3.25" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAQAAAA=</HashCode> | ||
<FileName>MetadataTypes\SamlIdpData.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.SamlSpData" Collapsed="true"> | ||
<Position X="2.75" Y="3.25" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode> | ||
<FileName>MetadataTypes\SamlSpData.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.StsData" Collapsed="true"> | ||
<Position X="5" Y="1.75" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AAAAIAAAAACAAAACAAAAAABAAAQAAAAAAAAAAAACAAA=</HashCode> | ||
<FileName>MetadataTypes\StsData.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Class Name="CedarLogic.Identity.ClaimItem" Collapsed="true"> | ||
<Position X="11" Y="0.5" Width="1.5" /> | ||
<TypeIdentifier> | ||
<HashCode>AAABAAAAAAAgAAgEQAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode> | ||
<FileName>MetadataTypes\StsData.cs</FileName> | ||
</TypeIdentifier> | ||
</Class> | ||
<Font Name="Segoe UI" Size="9" /> | ||
</ClassDiagram> |
44 changes: 44 additions & 0 deletions
44
src/FederationMetadataGenerator/FedMetadataTool/Configuration/ClaimTypeCollection.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Configuration; | ||
|
||
namespace CedarLogic.Identity.Configuration | ||
{ | ||
[ConfigurationCollection(typeof(NamespaceTypeElement))] | ||
public class NamespaceTypeCollection : ConfigurationElementCollection | ||
{ | ||
|
||
protected override ConfigurationElement CreateNewElement() | ||
{ | ||
return new NamespaceTypeElement(); | ||
} | ||
|
||
protected override object GetElementKey(ConfigurationElement element) | ||
{ | ||
return ((NamespaceTypeElement)(element)).Name; | ||
} | ||
|
||
public void Add(NamespaceTypeElement element) | ||
{ | ||
this.BaseAdd(element); | ||
} | ||
|
||
public void Remove(string key) | ||
{ | ||
this.BaseRemove(key); | ||
} | ||
|
||
public void Clear() | ||
{ | ||
this.BaseClear(); | ||
} | ||
|
||
public NamespaceTypeElement this[int idx] | ||
{ | ||
get { return (NamespaceTypeElement)this[idx]; } | ||
} | ||
} | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
src/FederationMetadataGenerator/FedMetadataTool/Configuration/ClaimTypeElement.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Configuration; | ||
|
||
namespace CedarLogic.Identity.Configuration | ||
{ | ||
|
||
public class NamespaceTypeElement : ConfigurationElement | ||
{ | ||
public NamespaceTypeElement() { } | ||
|
||
public NamespaceTypeElement(string name, Uri ns) | ||
{ | ||
this.Name = name; | ||
this.Namespace = ns; | ||
} | ||
|
||
[ConfigurationProperty("name", DefaultValue = "_", IsKey = true, IsRequired = true)] | ||
[StringValidator(InvalidCharacters = "~!@#$%^&()[]{}/;'\"|\\", MinLength = 1, MaxLength = 260)] | ||
public string Name | ||
{ | ||
get | ||
{ return (string)this["name"]; } | ||
set | ||
{ this["name"] = value; } | ||
} | ||
|
||
[ConfigurationProperty("namespace", IsKey = false, IsRequired = true)] | ||
public Uri Namespace | ||
{ | ||
get | ||
{ return (Uri)this["namespace"]; } | ||
set | ||
{ this["namespace"] = value; } | ||
} | ||
|
||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/FederationMetadataGenerator/FedMetadataTool/Configuration/FederationMetadataSection.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Configuration; | ||
|
||
namespace CedarLogic.Identity.Configuration | ||
{ | ||
public class FederationMetadataSection : ConfigurationSection | ||
{ | ||
[ConfigurationProperty("claimTypes")] | ||
public NamespaceTypeCollection ClaimTypes | ||
{ | ||
get | ||
{ | ||
return ((NamespaceTypeCollection)(base["claimTypes"])); | ||
} | ||
} | ||
|
||
[ConfigurationProperty("protocolSupport")] | ||
public NamespaceTypeCollection ProtocolSupport | ||
{ | ||
get | ||
{ | ||
return ((NamespaceTypeCollection)(base["protocolSupport"])); | ||
} | ||
} | ||
|
||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/FederationMetadataGenerator/FedMetadataTool/Constants.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Microsoft.IdentityModel.Tokens.Saml2; | ||
|
||
namespace CedarLogic.Identity | ||
{ | ||
public class Constants | ||
{ | ||
public const string Saml20AttributeNameFormat = "urn:oasis:names:tc:SAML:2.0:attrname-format:basic"; | ||
public const string Saml20Protocol = "urn:oasis:names:tc:SAML:2.0:protocol"; | ||
|
||
public const string Saml20ProtocolHttpPost = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"; | ||
public enum NameIdType : int { NA=0, Saml11=1, Saml20=2 } | ||
|
||
//public const string WsTrustNamespace = "http://docs.oasis-open.org/ws-sx/ws-trust/200512"; | ||
//public const string WsTrustSoapNs = "http://schemas.xmlsoap.org/ws/2005/02/trust"; | ||
|
||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/FederationMetadataGenerator/FedMetadataTool/Contact.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.ComponentModel; | ||
|
||
namespace CedarLogic.Identity | ||
{ | ||
|
||
[TypeConverter(typeof(ExpandableObjectConverter))] | ||
public class Contact | ||
{ | ||
[Description("Given name of the human contact at issuing organization")] | ||
public string GivenName { get; set; } | ||
[Description("Surname of the human contact at issuing organization")] | ||
public string SurName { get; set; } | ||
[Description("Email address of the human contact at issuing organization")] | ||
public string Email { get; set; } | ||
[Description("Phone of the human contact at the issuing organization")] | ||
public string Phone { get; set; } | ||
[Description("Company name of the issuing organization.")] | ||
public string Company { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return GivenName + " " + SurName; | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.