You are here

public static function Utilities::is_sp_configured in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

1 call to Utilities::is_sp_configured()
miniorange_samlController::saml_login in src/Controller/miniorange_samlController.php

File

src/Utilities.php, line 855

Class

Utilities
This file is part of miniOrange SAML plugin.

Namespace

Drupal\miniorange_saml

Code

public static function is_sp_configured() {
  $db_config = \Drupal::config('miniorange_saml.settings');
  if (empty($db_config
    ->get('miniorange_saml_idp_name')) || empty($db_config
    ->get('miniorange_saml_idp_issuer')) || empty($db_config
    ->get('miniorange_saml_idp_login_url'))) {
    self::moShowErrorMessage('Service Provider is not configured.');
  }
}