Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Sebastian,

    Thanks for writing to us.

    As I understand it, you have configured the plugin on 2 of your subsite under your multisite network. Can you please confirm if you have created a separate applications on your Azure to configure SSO on both of these subsites?
    If not, can you please create 2 separate application and make sure to have a separate SP Entity ID for both of these applications. You can change the SP Entity ID in the plugin settings under the Service Provider Metadata tab.

    Additionally, if you had like we can jump on a call with you and look into your issue. You can reach out to us through the support forum provided in the plugin.

    Thread Starter Sebastian Thulin

    (@nexustwins)

    Hi, and thank you for your swift response! I wasn’t aware that configuring multiple IdPs was necessary for this to work. However, I find this approach a bit cumbersome, though still logical. I haven’t personally configured the IdP yet, but I’ll check the current configuration for any references to this path and create a new one for the other sites.

    Best regards

    Hi,

    Thanks for getting back to us.

    If you need any further assistance please reach out to us.

    Thanks.

    Thread Starter Sebastian Thulin

    (@nexustwins)

    Hi again. I have approached this issue with a codefix while waiting for a new IdP configuration. I have used the same configuration on both sites. This fix is using the base site for the actual signon, and will not work for everynone (like having separate idp’s on multiple sites).

    Update to file class-mo-saml-login-validate.php -> mo_saml_login_validate() -> Approx. line 87 before $log_message.

    //Make it possible to use one idp config with subdir installs.
    if (is_multisite() && defined('SUBDOMAIN_INSTALL') && !SUBDOMAIN_INSTALL) {
    $replaceFrom = site_url(null, 'relative');
    $replaceTo = (function() {
    switch_to_blog(get_main_site_id());
    $carry = site_url(null, 'relative');
    restore_current_blog();
    return $carry;
    })();

    $acs_url = str_replace($replaceFrom, $replaceTo, $acs_url);
    $sp_entity_id = str_replace($replaceFrom, $replaceTo, $sp_entity_id);
    }

    Hi there,

    Thanks for getting back to us.

    As I understand it, you want to configure SSO on both your subsite by creating single application in the Azure IDP. I would like to mention that we also provide SSO plugin which support multisite, using that plugin you set up SSO on the network level and select the subsites on which you would like to enable SSO.

    For more details, please click on the Upgrade Now button at the top nav bar in the plugin settings.

    Looking forward to hearing back from you.

    Thanks & Regards,
    Nikhil Maheshwari

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘ACS Url seems to be broken on multisite installations using sub-folder structure’ is closed to new replies.