Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
next-version: 1.0.0
next-version: 4.5.0
tag-prefix: '[vV]'
mode: ContinuousDeployment
branches:
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Install the latest version of `Secure.SAML` nuget package with command below.

```
NuGet\Install-Package Secure.SAML
Install-Package Secure.SAML
```
#### ii. Implementation: Using `Secure.SAML`

Expand Down Expand Up @@ -136,12 +136,6 @@ If you are having problems, please let me know by [raising a new issue](https://

This project is licensed with the [MIT license](LICENSE).

## Version History
The main branch is now on .NET 9.0.
| Version | Release Notes |
| -------- | --------|
| [`v1.0.0`](https://github.com/CodeShayk/Secure.SAML/tree/release/v1.0.0) | [Notes](https://github.com/CodeShayk/Secure.SAML/releases/tag/v1.0.0) |

## Credits
Thank you for reading. Please fork, explore, contribute and report. Happy Coding !! :)

Expand Down
2 changes: 0 additions & 2 deletions src/Secure.SAML/Signing/ISamlSignerFactory.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Secure.SAML;

namespace Secure.SAML.Signing
{
internal interface ISamlSignerFactory
Expand Down
2 changes: 0 additions & 2 deletions src/Secure.SAML/Signing/SamlSignerFactory.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
using Secure.SAML.Signing;
using Secure.SAML;

namespace Secure.SAML.Signing
{
Expand Down
1 change: 0 additions & 1 deletion src/Secure.SAML/v2/SAML.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Xml;
using Secure.SAML.v2;
using Secure.SAML.Signing;

namespace Secure.SAML.v2
Expand Down
1 change: 0 additions & 1 deletion src/Secure.SAML/v2/SamlExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using Secure.SAML.v2;

namespace Secure.SAML.v2
{
Expand Down
88 changes: 44 additions & 44 deletions src/Secure.SAML/v2/Xsds/xenc-core-schema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -17,58 +17,58 @@
elementFormDefault='qualified'>

<import namespace='http://www.w3.org/2000/09/xmldsig#'
schemaLocation='http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd'/>
schemaLocation='http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd' />

<complexType name='EncryptedType' abstract='true'>
<sequence>
<element name='EncryptionMethod' type='xenc:EncryptionMethodType'
minOccurs='0'/>
<element ref='ds:KeyInfo' minOccurs='0'/>
<element ref='xenc:CipherData'/>
<element ref='xenc:EncryptionProperties' minOccurs='0'/>
minOccurs='0' />
<element ref='ds:KeyInfo' minOccurs='0' />
<element ref='xenc:CipherData' />
<element ref='xenc:EncryptionProperties' minOccurs='0' />
</sequence>
<attribute name='Id' type='ID' use='optional'/>
<attribute name='Type' type='anyURI' use='optional'/>
<attribute name='MimeType' type='string' use='optional'/>
<attribute name='Encoding' type='anyURI' use='optional'/>
<attribute name='Id' type='ID' use='optional' />
<attribute name='Type' type='anyURI' use='optional' />
<attribute name='MimeType' type='string' use='optional' />
<attribute name='Encoding' type='anyURI' use='optional' />
</complexType>

<complexType name='EncryptionMethodType' mixed='true'>
<sequence>
<element name='KeySize' minOccurs='0' type='xenc:KeySizeType'/>
<element name='OAEPparams' minOccurs='0' type='base64Binary'/>
<any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
<element name='KeySize' minOccurs='0' type='xenc:KeySizeType' />
<element name='OAEPparams' minOccurs='0' type='base64Binary' />
<any namespace='##other' minOccurs='0' maxOccurs='unbounded' />
</sequence>
<attribute name='Algorithm' type='anyURI' use='required'/>
<attribute name='Algorithm' type='anyURI' use='required' />
</complexType>

<simpleType name='KeySizeType'>
<restriction base="integer"/>
<restriction base="integer" />
</simpleType>

<element name='CipherData' type='xenc:CipherDataType'/>
<element name='CipherData' type='xenc:CipherDataType' />
<complexType name='CipherDataType'>
<choice>
<element name='CipherValue' type='base64Binary'/>
<element ref='xenc:CipherReference'/>
<element name='CipherValue' type='base64Binary' />
<element ref='xenc:CipherReference' />
</choice>
</complexType>

<element name='CipherReference' type='xenc:CipherReferenceType'/>
<element name='CipherReference' type='xenc:CipherReferenceType' />
<complexType name='CipherReferenceType'>
<choice>
<element name='Transforms' type='xenc:TransformsType' minOccurs='0'/>
<element name='Transforms' type='xenc:TransformsType' minOccurs='0' />
</choice>
<attribute name='URI' type='anyURI' use='required'/>
<attribute name='URI' type='anyURI' use='required' />
</complexType>

<complexType name='TransformsType'>
<sequence>
<element ref='ds:Transform' maxOccurs='unbounded'/>
<element ref='ds:Transform' maxOccurs='unbounded' />
</sequence>
</complexType>

<element name='EncryptedData' type='xenc:EncryptedDataType'/>
<element name='EncryptedData' type='xenc:EncryptedDataType' />
<complexType name='EncryptedDataType'>
<complexContent>
<extension base='xenc:EncryptedType'>
Expand All @@ -78,65 +78,65 @@

<!-- Children of ds:KeyInfo -->

<element name='EncryptedKey' type='xenc:EncryptedKeyType'/>
<element name='EncryptedKey' type='xenc:EncryptedKeyType' />
<complexType name='EncryptedKeyType'>
<complexContent>
<extension base='xenc:EncryptedType'>
<sequence>
<element ref='xenc:ReferenceList' minOccurs='0'/>
<element name='CarriedKeyName' type='string' minOccurs='0'/>
<element ref='xenc:ReferenceList' minOccurs='0' />
<element name='CarriedKeyName' type='string' minOccurs='0' />
</sequence>
<attribute name='Recipient' type='string'
use='optional'/>
use='optional' />
</extension>
</complexContent>
</complexType>

<element name="AgreementMethod" type="xenc:AgreementMethodType"/>
<element name="AgreementMethod" type="xenc:AgreementMethodType" />
<complexType name="AgreementMethodType" mixed="true">
<sequence>
<element name="KA-Nonce" minOccurs="0" type="base64Binary"/>
<element name="KA-Nonce" minOccurs="0" type="base64Binary" />
<!-- <element ref="ds:DigestMethod" minOccurs="0" /> -->
<any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
<element name="OriginatorKeyInfo" minOccurs="0" type="ds:KeyInfoType"/>
<element name="RecipientKeyInfo" minOccurs="0" type="ds:KeyInfoType"/>
<any namespace="##other" minOccurs="0" maxOccurs="unbounded" />
<element name="OriginatorKeyInfo" minOccurs="0" type="ds:KeyInfoType" />
<element name="RecipientKeyInfo" minOccurs="0" type="ds:KeyInfoType" />
</sequence>
<attribute name="Algorithm" type="anyURI" use="required"/>
<attribute name="Algorithm" type="anyURI" use="required" />
</complexType>

<!-- End Children of ds:KeyInfo -->

<element name='ReferenceList'>
<complexType>
<choice minOccurs='1' maxOccurs='unbounded'>
<element name='DataReference' type='xenc:ReferenceType'/>
<element name='KeyReference' type='xenc:ReferenceType'/>
<element name='DataReference' type='xenc:ReferenceType' />
<element name='KeyReference' type='xenc:ReferenceType' />
</choice>
</complexType>
</element>

<complexType name='ReferenceType'>
<sequence>
<any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
<any namespace='##other' minOccurs='0' maxOccurs='unbounded' />
</sequence>
<attribute name='URI' type='anyURI' use='required'/>
<attribute name='URI' type='anyURI' use='required' />
</complexType>

<element name='EncryptionProperties' type='xenc:EncryptionPropertiesType'/>
<element name='EncryptionProperties' type='xenc:EncryptionPropertiesType' />
<complexType name='EncryptionPropertiesType'>
<sequence>
<element ref='xenc:EncryptionProperty' maxOccurs='unbounded'/>
<element ref='xenc:EncryptionProperty' maxOccurs='unbounded' />
</sequence>
<attribute name='Id' type='ID' use='optional'/>
<attribute name='Id' type='ID' use='optional' />
</complexType>

<element name='EncryptionProperty' type='xenc:EncryptionPropertyType'/>
<element name='EncryptionProperty' type='xenc:EncryptionPropertyType' />
<complexType name='EncryptionPropertyType' mixed='true'>
<choice maxOccurs='unbounded'>
<any namespace='##other' processContents='lax'/>
<any namespace='##other' processContents='lax' />
</choice>
<attribute name='Target' type='anyURI' use='optional'/>
<attribute name='Id' type='ID' use='optional'/>
<anyAttribute namespace="http://www.w3.org/XML/1998/namespace"/>
<attribute name='Target' type='anyURI' use='optional' />
<attribute name='Id' type='ID' use='optional' />
<anyAttribute namespace="http://www.w3.org/XML/1998/namespace" />
</complexType>
</schema>
Loading
Loading