When login to local drupal admin, the result error occurred. The site is redirected to port 80.

This site can’t be reached

dev.mysite.cm unexpectedly closed the connection.
Try:
Checking the connection
Checking the proxy and the firewall
Running Network Diagnostics
ERR_CONNECTION_CLOSED
ReloadHIDE DETAILS
Check your Internet connection
Check any cables and reboot any routers, modems, or other network devices you may be using.
Allow Chrome to access the network in your firewall or antivirus settings.
If it is already listed as a program allowed to access the network, try removing it from the list and adding it again.
If you use a proxy server…
Check your proxy settings or contact your network administrator to make sure the proxy server is working. If you don't believe you should be using a proxy server: Go to Applications > System Preferences > Network > Advanced > Proxies and deselect any proxies that have been selected.

Comments

itsCharlie created an issue. See original summary.

itsCharlie’s picture

Title: This site can’t be reached www.example.com unexpectedly closed the connection. » This site can’t be reached dev.example.com unexpectedly closed the connection.
itsCharlie’s picture

Not sure if it's related but clicking the link "Login with your SSO account" and type in /saml_login/ both goes to the /user/login page for authentication. Regardless of which user/password is typed in, it always said, "Unrecognized username or password."

itsCharlie’s picture

These are the instructions I followed and they are pretty much similar.

I am wondering if it has something to do with this configuration in the settings.php file. Again, entering /saml_login/ will redirect back to user/login instead.

// SimpleSAMLphp_auth module settings
$config['simplesamlphp_auth.settings'] = [
 // Basic settings.
    'activate'                => TRUE, // Enable or Disable SAML login.
    'auth_source'             => 'default-sp',
    'login_link_display_name' => 'Login with your SSO account',
    'register_users'          => TRUE,
    'debug'                   => FALSE,
 // Local authentication.
    'allow' => array(
      'default_login'         => TRUE,
      'set_drupal_pwd'        => TRUE,
      'default_login_users'   => '',
      'default_login_roles'   => array(
        'authenticated' => FALSE,
        'administrator' => 'administrator',
      ),
    ),
    'logout_goto_url'         => '',
 // User info and syncing.
 // 'unique_id' the value which is unique in the saml response coming from IDP.
    'unique_id'               => 'mail',
    'user_name'               => 'username',
    'mail_attr'               => 'mail',
    'sync' => array(
        'mail'      => TRUE,
        'user_name' => TRUE,
    ),
];
aprohl5’s picture

Hi Its Charlie -

If you followed the above documentation, were you able to successfully test authentication of the default-sp at dev.mysite.com/simplesaml/module.php/core/authenticate.php by clicking the default-sp link on that page and logging in?

Just so you know, it is unlikely that this error is caused by the module. I have set up simplesaml with this module numerous times and never needed to make any changes to the module itself.

itsCharlie’s picture

I am successfully able to test the simplesamlph with http://dev.mysite.com/simplesaml but not with dev.mysite.com/saml_login. I have not tried dev.mysite.com/simplesaml/module.php/core/authenticate.php; however, I've found out that for some reason (perhaps it's me or something) but the simplesamlphp_auth module or Drupal 8 do not use the simplesamlphp folder at the same level as the docroot folder. We use composer and composer installed another simpelsamlphp at the vendor/simplesamlphp/simplesamlphp location instead. That seemed to be the source of the issue. All the instructions I've listed above did not mention anything about the vendor/simplesamlphp/simplesamlphp folder. Once I've created a symlink in the docroot folder to the vendor/simplesamlphp/simplesamlphp/www folder it works. However, my concerns is, once we've made configuration changes to simplesamlphp inside the vendor folder, future updates may wipe out those settings.

itsCharlie’s picture

By the way, I'm able to login but when I logged out, I receive the same error. I have not been able to trace it to the source of the issue.

itsCharlie’s picture

Per the logout issue I'm having, I'm able to logout fine under dev.www.mysite.com/simplesaml/ after I've gone through the logging to test and it shows all my attributes. At the bottom left corner, when clicked the Logout URL, it logs me out fine; however, when I'm in Drupal main site, I got the same error when clicked the Log Out. Again, not sure if it's related but just throwing things out that I've encountered.

itsCharlie’s picture

I have a multisite setup and while I got one site to work, another site I am getting this exact error when trying to login as the local drupal admin user. If I turn set the simplesamlphp_auth.settings activate to false then I'm able to login dupal using the local admin user fine. I still have not figured this one out.

heddn’s picture