Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It breaks when adding XML medatata to SSO IdP Metadata #60

Open
theasteve opened this issue Mar 9, 2020 · 2 comments
Open

It breaks when adding XML medatata to SSO IdP Metadata #60

theasteve opened this issue Mar 9, 2020 · 2 comments

Comments

@theasteve
Copy link

theasteve commented Mar 9, 2020

I created a WP sandbox to implement SSO. When I add the XML medadata to the SSO Ido Metadata field I get the following error:

Invalid array settings: sp_entityId_not_found, sp_acs_url_invalid, sp_sls_url_invalid

Screen Shot 2020-03-09 at 4 05 47 PM

Here is the format of the XML I add to the field:

<?xml version="1.0"?>
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" validUntil="XXXXXXX" cacheDuration="XXXXXX" entityID="XXXXX">
  <md:IDPSSODescriptor WantAuthnRequestsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
    <md:KeyDescriptor use="signing">
      <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
        <ds:X509Data>
          <ds:X509Certificate>XXXXXXXXXXXXXXXXXXX=</ds:X509Certificate>
        </ds:X509Data>
      </ds:KeyInfo>
    </md:KeyDescriptor>
    <md:KeyDescriptor use="encryption">
      <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
        <ds:X509Data>
          <ds:X509Certificate>XXXXXXXXXXXX=</ds:X509Certificate>
        </ds:X509Data>
      </ds:KeyInfo>
    </md:KeyDescriptor>
    <md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</md:NameIDFormat>
    <md:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://fidm.us1.gigya.com/saml/v2.0/XXXXXXXXXXXXXXXXXXX/idp/metadata"/>
  </md:IDPSSODescriptor>
</md:EntityDescriptor>

@shadyvb
Copy link
Contributor

shadyvb commented Mar 24, 2020

@theasteve Given your other issue at #62 , did you solve this issue here already ?

@Nikschavan
Copy link

I faced this today, probably my idP metadata was incorrect. When this throws this error in the options screen it removes the save button so the only way to fix this is to go into the database and remove metadata from there.

I am guessing wrapping Auth() set up in a try/catch block to catch the exception would at least make this easier to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants