Esempio n. 1
0
 public static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
<?php

/**
 * SAML 2.0 remote IdP metadata for simpleSAMLphp.
 *
 * Remember to remove the IdPs you don't use from this file.
 *
 * See: https://rnd.feide.no/content/idp-remote-metadata-reference
 */
/*
 * Guest IdP. allows users to sign up and register. Great for testing!
 */
/*
$metadata['https://openidp.feide.no'] = array(
	'name' => array(
		'en' => 'Feide OpenIdP - guest users',
		'no' => 'Feide Gjestebrukere',
	),
	'description'          => 'Here you can login with your account on Feide RnD OpenID. If you do not already have an account on this identity provider, you can create a new one by following the create new account link and follow the instructions.',
	'SingleSignOnService'  => 'https://openidp.feide.no/simplesaml/saml2/idp/SSOService.php',
	'SingleLogoutService'  => 'https://openidp.feide.no/simplesaml/saml2/idp/SingleLogoutService.php',
	'certFingerprint'      => 'c9ed4dfb07caf13fc21e0fec1572047eb8a7a4cb'
);
*/
require_once dirname(__DIR__) . "/config/efront-connect.php";
$ef = EfrontConnect::getInstance();
$metadata[$ef::$config['saml_provider']] = array('name' => $ef::$config['saml_provider'], 'description' => '', 'SingleSignOnService' => $ef::$config['saml_sign_in'], 'SingleLogoutService' => $ef::$config['saml_sign_out'], 'certFingerprint' => $ef::$config['saml_fingerprint']);