ComponentSpace

Forums



ComponentSpace.SAML2.Exceptions.SAMLSchemaValidationException: 'One or more configuration XML schema...


ComponentSpace.SAML2.Exceptions.SAMLSchemaValidationException: 'One or...

Author
Message
ramalak
ramalak
New Member
New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)

Group: Awaiting Activation
Posts: 2, Visits: 17
We are using your service as IDP in our earlier project .Its working great . Now we have SAML service provider setup in another project and trying to send the signed SAML request to IDP with with intiateSSO method in  asp.net 4.0 environment with ComponentSpace.SAML2.dll (file version 2.8.6.0). I am getting the error.

Please advice.

SAMLServiceProvider.InitiateSSO(Response, returnUrl, partnerIdP);

saml configuration

<?xml version="1.0"?>
<SAMLConfiguration xmlns="urn:componentspace:SAML:2.0:configuration">
<ServiceProvider
  Name="https://www.bastest.com"
  Description="Example Service Provider"
  AssertionConsumerServiceUrl="~/SAML/AssertionConsumerService.aspx">
  <LocalCertificates>
  <Certificate FileName="Certificates\SPcer.pfx" Password="xxxxxxxxx"/>
  </LocalCertificates>
</ServiceProvider>

<PartnerIdentityProviders>
  <!-- Web forms example -->
  <PartnerIdentityProvider
   Name="https://LocalTestSSO-Application"
   Description="Example Identity Provider"
  SingleSignOnServiceUrl="SAML/SSOService.aspx"
  SingleLogoutServiceUrl="https://localhost:44390/SAML/SLOService.aspx">
  <PartnerCertificates>
   <Certificate FileName="Certificates\idp.cer"/>
  </PartnerCertificates>
  </PartnerIdentityProvider> 
</PartnerIdentityProviders>
</SAMLConfiguration>


ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
Version 2.8.6 is six years old. In version 3.5.0 we made a breaking change to SAML configuration syntax to make the specification of certificates more flexible.

The SAML configuration you've specified follows the new syntax. You need to use the old syntax associated with v2.8.6 or, better yet, upgrade to the latest version.

You'll find examples of the old syntax with the example projects that ship with v2.8.6. Also, the syntax is documented in the Developer Guide.

Below is part of the saml.config for the v2.8.6 ExampleServiceProvider project.


<SAMLConfiguration xmlns="urn:componentspace:SAML:2.0:configuration">
<ServiceProvider Name="http://localhost/ExampleServiceProvider"
       Description="Example Service Provider"
       AssertionConsumerServiceUrl="~/SAML/AssertionConsumerService.aspx"
       LocalCertificateFile="Certificates\sp.pfx"
       LocalCertificatePassword="password"/>

<PartnerIdentityProviders>
    <!-- Web forms example -->
    <PartnerIdentityProvider Name="http://localhost/ExampleIdentityProvider"
          Description="Example Identity Provider"
          SignAuthnRequest="true"
          SingleSignOnServiceUrl="http://localhost/ExampleIdentityProvider/SAML/SSOService.aspx"
          SingleLogoutServiceUrl="http://localhost/ExampleIdentityProvider/SAML/SLOService.aspx"
          PartnerCertificateFile="Certificates\idp.cer"/>

</PartnerIdentityProviders>
</SAMLConfiguration>




Regards
ComponentSpace Development
ramalak
ramalak
New Member
New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)

Group: Awaiting Activation
Posts: 2, Visits: 17
ComponentSpace - 10/2/2023
Version 2.8.6 is six years old. In version 3.5.0 we made a breaking change to SAML configuration syntax to make the specification of certificates more flexible.

The SAML configuration you've specified follows the new syntax. You need to use the old syntax associated with v2.8.6 or, better yet, upgrade to the latest version.

You'll find examples of the old syntax with the example projects that ship with v2.8.6. Also, the syntax is documented in the Developer Guide.

Below is part of the saml.config for the v2.8.6 ExampleServiceProvider project.


<SAMLConfiguration xmlns="urn:componentspace:SAML:2.0:configuration">
<ServiceProvider Name="http://localhost/ExampleServiceProvider"
       Description="Example Service Provider"
       AssertionConsumerServiceUrl="~/SAML/AssertionConsumerService.aspx"
       LocalCertificateFile="Certificates\sp.pfx"
       LocalCertificatePassword="password"/>

<PartnerIdentityProviders>
    <!-- Web forms example -->
    <PartnerIdentityProvider Name="http://localhost/ExampleIdentityProvider"
          Description="Example Identity Provider"
          SignAuthnRequest="true"
          SingleSignOnServiceUrl="http://localhost/ExampleIdentityProvider/SAML/SSOService.aspx"
          SingleLogoutServiceUrl="http://localhost/ExampleIdentityProvider/SAML/SLOService.aspx"
          PartnerCertificateFile="Certificates\idp.cer"/>

</PartnerIdentityProviders>
</SAMLConfiguration>


 
Thank you very much for your quick reply. I will check the syntax. I am interested to use the new version . Could you able to send the instruction for how to do I get the new version 3.5.0 .That will be really great.

ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
You're welcome. I've replied to you via email.

Regards
ComponentSpace Development
GO


Similar Topics


Execution: 0.000. 2 queries. Compression Enabled.
Login
Existing Account
Email Address:


Password:


Select a Forum....












Forums, Documentation & Knowledge Base - ComponentSpace


Search