You are here

public function SamlSPDrupalLoginController::initiate in SAML Service Provider 8.2

Same name and namespace in other branches
  1. 8.3 modules/saml_sp_drupal_login/src/Controller/SamlSPDrupalLoginController.php \Drupal\saml_sp_drupal_login\Controller\SamlSPDrupalLoginController::initiate()
  2. 4.x modules/saml_sp_drupal_login/src/Controller/SamlSPDrupalLoginController.php \Drupal\saml_sp_drupal_login\Controller\SamlSPDrupalLoginController::initiate()
  3. 3.x modules/saml_sp_drupal_login/src/Controller/SamlSPDrupalLoginController.php \Drupal\saml_sp_drupal_login\Controller\SamlSPDrupalLoginController::initiate()

Initiate a SAML login for the given IdP

1 string reference to 'SamlSPDrupalLoginController::initiate'
saml_sp_drupal_login.routing.yml in modules/saml_sp_drupal_login/saml_sp_drupal_login.routing.yml
modules/saml_sp_drupal_login/saml_sp_drupal_login.routing.yml

File

modules/saml_sp_drupal_login/src/Controller/SamlSPDrupalLoginController.php, line 26
Contains \Drupal\samlsp\Controller\SamlSPDrupalLoginController.

Class

SamlSPDrupalLoginController
Provides route responses for the SAML SP module

Namespace

Drupal\saml_sp_drupal_login\Controller

Code

public function initiate(Idp $idp) {

  // Start the authentication process; invoke
  // saml_sp_drupal_login__saml_authenticate() when done.
  $return = saml_sp_start($idp, 'saml_sp_drupal_login__saml_authenticate');
  if (!empty($return)) {

    // something was returned, echo it to the screen
    return $return;
  }
}