You are here

public function SamlService::login in SAML Authentication 8

Same name and namespace in other branches
  1. 8.3 src/SamlService.php \Drupal\samlauth\SamlService::login()
  2. 8.2 src/SamlService.php \Drupal\samlauth\SamlService::login()
  3. 4.x src/SamlService.php \Drupal\samlauth\SamlService::login()

Initiate a SAML2 authentication flow.

Parameters

string $return_to: The path to return the user to after a successful login.

File

src/SamlService.php, line 76
Contains Drupal\samlauth\SamlService.

Class

SamlService
Class SamlService.

Namespace

Drupal\samlauth

Code

public function login($return_to = null) {
  $this->auth
    ->login($return_to);
}