Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-1917

Documentation (Edit): Include detailed logic explanations on Metadata URL and Metadata XML file usage in the SAML Admin page.

    Details

    • Type: New Article
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 6.2.x
    • Component/s: Developer Network
    • Labels:
      None

      Description

      The current explanations of Metadata URL and Metadata XML file are not clear enough.

      We should at least mention about the following logic in the articles at: https://dev.liferay.com/discover/portal/-/knowledge_base/6-2/integrating-existing-users-into-liferay#saml and https://www.liferay.com/documentation/liferay-portal/6.2/user-guide/-/ai/integrating-existing-users-into-liferay-liferay-portal-6-2-user-guide-17-en.

      In order for the newly uploaded Metadata XML file to preserve and to work, we must make sure its name is shown in the "Metadata XML" field every time after we click on "Upload Metadata XML". In other words, the specified Metadata XML file must be manually selected in the "Metadata XML" field every time before saving the configuration.

      Also, the related code is as follows:

      if ((metadataXmlInputStream == null) &&
      Validator.isNotNull(metadataUrl))

      { samlSpIdpConnection.setMetadataUrl(metadataUrl); metadataXmlInputStream = MetadataUtil.getMetadata(metadataUrl); }

      String metadataXml = StringPool.BLANK;
      if (metadataXmlInputStream != null)

      { metadataXml = getMetadataXml( metadataXmlInputStream, samlIdpEntityId); }

      if (Validator.isNotNull(metadataXml))

      { samlSpIdpConnection.setMetadataUpdatedDate(now); samlSpIdpConnection.setMetadataXml(metadataXml); }

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: