function setUp()
 {
     // This test assumes that MemberAuthenticator is present and the default
     $this->priorAuthenticators = Authenticator::get_authenticators();
     $this->priorDefaultAuthenticator = Authenticator::get_default_authenticator();
     //Authenticator::register('MemberAuthenticator');
     Authenticator::register_authenticator('ExternalAuthenticator');
     Authenticator::set_default_authenticator('ExternalAuthenticator');
     //Create the sources in this order. Switching them around would mean that
     //all tests use the fake driver because this always succeeds and auto create
     //is on
     ExternalAuthenticator::createSource('sstripe_unittest', 'SSTRIPE', 'SilverStripe');
     ExternalAuthenticator::createSource('fake_unittest', 'FAKE', 'Fake Source');
     ExternalAuthenticator::setAuthSequential(true);
     ExternalAuthenticator::setAuthSSLock('sstripe_unittest', true);
     ExternalAuthenticator::setAuthSSLock('fake_unittest', false);
     ExternalAuthenticator::setAutoAdd('fake_unittest', 'mygroup');
     ExternalAuthenticator::setDefaultDomain('fake_unittest', 'silverstripe.com');
     ExternalAuthenticator::setAuthDebug(false);
     ExternalAuthenticator::setAuditLogFile(false);
     ExternalAuthenticator::setAuditLogSStripe(true);
     parent::setUp();
 }
<?php

/**
 * Registers the Salesforce authenticator.
 */
Authenticator::register_authenticator('SalesforceAuthenticator');
Exemplo n.º 3
0
<?php

Authenticator::register_authenticator('RealMeAuthenticator');
// defines the base directory, used by RealMeLoginForm to include javascript and css via Requirements
define('REALME_MODULE_PATH', basename(dirname(__FILE__)));
Exemplo n.º 4
0
<?php

/**
 * Configuration file for the auth_openid module.
 * @package OpenID
 */
/**
 * Define the random number generator for the OpenID library
 *
 * To set a source of randomness, define {@link Auth_OpenID_RAND_SOURCE}
 * to the path to the randomness source. If your platform does not provide a
 * secure randomness source, the library can operate in pseudorandom mode,
 * but it is then vulnerable to theoretical attacks.
 * If you wish to operate in pseudorandom mode, define
 * {@link Auth_OpenID_RAND_SOURCE} to null.
 * On a Unix-like platform  (including MacOS X), try "/dev/random" and
 * "/dev/urandom".
 */
define('Auth_OpenID_RAND_SOURCE', null);
/**
 * Register the {@link OpenIDAuthenticator OpenID authenticator}
 */
Authenticator::register_authenticator('OpenIDAuthenticator');
<?php

Authenticator::register_authenticator('GoogleAuthenticator');
<?php

/**
 * @author Will Morgan <@willmorgan>
 * @author Dan Hensby <@dhensby>
 * @copyright Copyright (c) 2013, Better Brief LLP
 */
// Set base constant so devs can put this module wherever
define('OPAUTH_BASE', basename(dirname(__FILE__)));
Authenticator::register_authenticator('OpauthAuthenticator');
<?php

// Add new authenticator
Authenticator::register_authenticator('UsernameOrEmailAuthenticator');
Exemplo n.º 8
0
<?php

Authenticator::register_authenticator('Bigfork\\SilverStripeOAuth\\Client\\Authenticator\\Authenticator');
Exemplo n.º 9
0
 * <code>
 * Authenticator::register_authenticator('OpenIDAuthenticator');
 * </code>
 *
 * @package sapphire
 * @subpackage core
 */
/**
 * Add pear parser to include path
 */
$path = Director::baseFolder() . '/sapphire/parsers/';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
/**
 * Register the {@link OpenIDAuthenticator OpenID authenticator}
 */
Authenticator::register_authenticator('MemberAuthenticator');
Authenticator::set_default_authenticator('MemberAuthenticator');
/**
 * Define a default language different than english
 */
//i18n::set_locale('ca_AD');
/**
 * The root directory of TinyMCE
 */
define('MCE_ROOT', 'jsparty/tiny_mce2/');
/**
 * Should passwords be encrypted (TRUE) or stored in clear text (FALSE)?
 */
Security::encrypt_passwords(true);
/**
 * Which algorithm should be used to encrypt? Should a salt be used to