/** * @see sfPluginConfiguration */ public function initialize() { // Include the Altumo loader. //require_once( dirname(__FILE__) . '/../lib/vendor/altumo/source/php/loader.php' ); //set default timezone date_default_timezone_set('America/Los_Angeles'); //symfony 2 autoloader (for classes with namespaces only) $altumo_php_source_path = __DIR__ . '/../lib/vendor/altumo/source/php'; require_once $altumo_php_source_path . '/Utils/UniversalClassLoader.php'; $loader = new Symfony\Component\ClassLoader\UniversalClassLoader(); $loader->registerNamespaces(array('sfAltumoPlugin' => __DIR__ . '/../lib', 'Altumo' => $altumo_php_source_path)); $loader->register(); // Add altumo paths to sfConfig sfConfig::set('altumo_plugin_dir', realpath(dirname(__FILE__) . '/../')); sfConfig::set('altumo_javascript_lib_dir', sfConfig::get('altumo_plugin_dir') . '/lib/vendor/altumo/lib/javascript'); sfConfig::set('altumo_javascript_src_dir', sfConfig::get('altumo_plugin_dir') . '/lib/vendor/altumo/source/javascript'); /** * If the AWS module is enabled, set credentials for sdk * * To enable, add a section to settings.yml, like so: * sfAltumoPlugin: * aws: * enable: true * key: "MY_AWS_KE_HERE" * secret: "MY_AWS_SECRET_HERE" */ $aws_configuration = sfConfig::get('sf_sfAltumoPlugin_aws', array('enable' => false)); if ($aws_configuration['enable']) { CFCredentials::set(array('default' => array('key' => $aws_configuration['key'], 'secret' => $aws_configuration['secret'], 'default_cache_config' => '', 'certificate_authority' => false), '@default' => 'default')); } // Add altumo Api Settings (Add this in your api app's config) //sfConfig::set( 'altumo_api_session_cookie_name', 'api_session' ); /** * Execute any commands that the plugin needs when the framework loads, but * before an action is executed. * * Note: this is here because it was used before to load JS and CSS, but * that was relocated to Frontend\Controller */ /* $this->dispatcher->connect( 'context.load_factories', function(){ // this code gets execute when the framework loads. } ); */ }
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'AKIAJDRQ5N4HYEUWQZRA', 'secret' => 'eiZV6ZhwN2ZcAeP/f0EgnlFvYn6+TKFaQVE/mWY5', 'default_cache_config' => '', 'certificate_authority' => false), '@default' => 'development'));
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'development-key', 'secret' => 'development-secret', 'default_cache_config' => '', 'certificate_authority' => true), '@default' => 'development'));
function remove_amazons3_backup_bwd_comp($args) { if ($this->iwp_mmb_function_exists('curl_init')) { require_once $GLOBALS['iwp_mmb_plugin_dir'] . '/lib/amazon_s3_bwd_comp/sdk.class.php'; extract($args); if (!is_array($backup_file)) { $temp_backup_file = $backup_file; $backup_file = array(); $backup_file[] = $temp_backup_file; } if ($as3_site_folder == true) { if (!empty($as3_directory)) { $as3_directory .= '/' . $this->site_name; } else { $as3_directory = $this->site_name; } } try { CFCredentials::set(array('development' => array('key' => trim($as3_access_key), 'secret' => trim(str_replace(' ', '+', $as3_secure_key)), 'default_cache_config' => '', 'certificate_authority' => true), '@default' => 'development')); $s3 = new AmazonS3(); foreach ($backup_file as $single_backup_file) { if (empty($as3_directory)) { $single_as3_file = $single_backup_file; } else { $single_as3_file = $as3_directory . '/' . $single_backup_file; } $s3->delete_object($as3_bucket, $single_as3_file); } } catch (Exception $e) { } } }
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'AKIAIKVHFXPE7FYFMTBA', 'secret' => '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', 'default_cache_config' => '..\\cache', 'certificate_authority' => true), '@default' => 'development')); date_default_timezone_set('America/New_York');
function get_amazons3_backup_bwd_comp($args) { if ($this->iwp_mmb_function_exists('curl_init')) { require_once $GLOBALS['iwp_mmb_plugin_dir'] . '/lib/amazon_s3_bwd_comp/sdk.class.php'; extract($args); $temp = ''; try { CFCredentials::set(array('development' => array('key' => trim($as3_access_key), 'secret' => trim(str_replace(' ', '+', $as3_secure_key)), 'default_cache_config' => '', 'certificate_authority' => true), '@default' => 'development')); $s3 = new AmazonS3(); if ($as3_site_folder == true) { if (!empty($as3_directory)) { $as3_directory .= '/' . $this->site_name; } else { $as3_directory = $this->site_name; } } if (empty($as3_directory)) { $single_as3_file = $backup_file; } else { $single_as3_file = $as3_directory . '/' . $backup_file; } //$temp = ABSPATH . 'iwp_temp_backup.zip'; $temp = wp_tempnam('iwp_temp_backup.zip'); $s3->get_object($as3_bucket, $single_as3_file, array("fileDownload" => $temp)); } catch (Exception $e) { return false; } return $temp; } else { return array('error' => 1); } }
/** * Gets s3 object * * @param boolean $debug return error message instead of script stop * @return \AmazonS3 s3 object */ public function s3($debug = false) { // This is workaround to composer autoloader if (!class_exists('CFLoader')) { throw new ClassNotFoundException('Amazon: autoload failed'); } if (empty($this->_s3)) { \CFCredentials::set(array('@default' => array('key' => $this->getOption('key'), 'secret' => $this->getOption('secret')))); $this->_s3 = new \AmazonS3(); $this->_s3->use_ssl = false; $this->_buckets = fn_array_combine($this->_s3->get_bucket_list(), true); } $message = ''; $bucket = $this->getOption('bucket'); if (empty($this->_buckets[$bucket])) { $res = $this->_s3->create_bucket($bucket, $this->getOption('region')); if ($res->isOK()) { $res = $this->_s3->create_cors_config($bucket, array('cors_rule' => array(array('allowed_origin' => '*', 'allowed_method' => 'GET')))); if ($res->isOK()) { $this->_buckets[$bucket] = true; } else { $message = (string) $res->body->Message; } } else { $message = (string) $res->body->Message; } } if (!empty($message)) { if ($debug == true) { return $message; } throw new ExternalException('Amazon: ' . $message); } return $this->_s3; }
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'AKIAJMD23UOQ6JVJT44A', 'secret' => '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', 'default_cache_config' => '', 'certificate_authority' => false), '@default' => 'development'));
/** * Constructor * * @param array $parameters An array of configuration options */ public function __construct(array $parameters) { $this->parameters = $parameters; \CFCredentials::set(array('runtime' => $parameters, '@default' => 'runtime')); }
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'AKIAIATBDDDFRGLWQTBQ', 'secret' => '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', 'default_cache_config' => dirname(BASEPATH) . '/system/cache', 'certificate_authority' => false), '@default' => 'development'));
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'AKIAIXI5YSN6JJRSPGSQ', 'secret' => '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', 'default_cache_config' => '', 'certificate_authority' => false), '@default' => 'development'));
private static function s3_connect() { CFCredentials::set(array('development' => array('key' => self::$api_key, 'secret' => self::$secret_key, 'default_cache_config' => 'apc', 'certificate_authority' => false), '@default' => 'development')); $s3 = new AmazonS3(); return $s3; }
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'AKIAJQHBMP5GWSPCC5BA', 'secret' => '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', 'default_cache_config' => '', 'certificate_authority' => false), '@default' => 'development'));
/** * @return \AmazonS3 */ protected function initializeS3() { $extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('cicbase'); require_once $extensionPath . 'Vendor/awssdk/sdk.class.php'; \CFCredentials::set(array('production' => array('key' => $this->cicbaseConfiguration['AWSKey'], 'secret' => $this->cicbaseConfiguration['AWSSecret'], 'default_cache_config' => '', 'certificate_authority' => true), '@default' => 'production')); $s3 = new \AmazonS3(); return $s3; }
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'AKIAJK43Z3GIIF3XRIJQ', 'secret' => 'z1ZdTXoiNY1/I/JJmyVXfR9mU93kuq5Oo4vjW4cw', 'default_cache_config' => '', 'certificate_authority' => false), '@default' => 'development'));
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'MYKEY', 'secret' => 'MYSECRET', 'default_cache_config' => '', 'certificate_authority' => false), '@default' => 'development'));
/** * Gets CloudFront object * * @param array $options connection options * @return \AmazonCF CloudFront object */ private function _cf($options = array()) { if (empty($this->_cf) || !empty($options)) { // This is workaround to composer autoloader if (!class_exists('CFLoader')) { throw new ClassNotFoundException('CloudFront: autoload failed'); } $key = !empty($options['key']) ? $options['key'] : $this->getOption('key'); $secret = !empty($options['secret']) ? $options['secret'] : $this->getOption('secret'); \CFCredentials::set(array('@default' => array('key' => $key, 'secret' => $secret))); $this->_cf = new \AmazonCloudFront(); $this->_cf->use_ssl = false; } return $this->_cf; }
<?php require_once 'Plans.php'; require_once 'lib/aws/sdk.class.php'; if (defined('AWS_KEY')) { CFCredentials::set(array('default' => array('key' => AWS_KEY, 'secret' => AWS_SECRET_KEY))); } function send_mail($to, $subject, $text, $from = MAILER_ADDRESS, $reply_to = ADMIN_ADDRESS) { if (USE_NATIVE_MAIL) { if (is_array($to)) { $to = implode(', ', $to); } return mail($to, $subject, $text, "From:{$from}\nReply-to:{$reply_to}"); } else { $message = array('Subject' => array('Data' => $subject), 'Body' => array('Text' => array('Data' => $text))); $opt = array('ReplyToAddresses' => $reply_to); if (!is_array($to)) { $to = array($to); } $ses = new AmazonSES(); $ret = $ses->send_email($from, array('ToAddresses' => $to), $message, $opt); return $ret->isOK(); } }
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => WH_AWS_PAGEDATA_ACCESS_KEY, 'secret' => WH_AWS_PAGEDATA_SECRET_KEY, 'default_cache_config' => 'apc', 'certificate_authority' => true), '@default' => 'development'));
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'development-key', 'secret' => 'development-secret', 'default_cache_config' => $_SERVER['DOCUMENT_ROOT'] . '/cache/', 'certificate_authority' => false), '@default' => 'development'));
try { CFCredentials::set(array('backwpup' => array('key' => $_POST['awsAccessKey'], 'secret' => $_POST['awsSecretKey'], 'default_cache_config' => '', 'certificate_authority' => true), '@default' => 'backwpup')); $s3 = new AmazonS3(); $s3->create_bucket($_POST['newawsBucket'], $_POST['awsRegion']); $jobvalues['awsBucket'] = $_POST['newawsBucket']; } catch (Exception $e) { $backwpup_message .= __($e->getMessage(), 'backwpup') . '<br />'; } } if (!empty($_POST['GStorageAccessKey']) and !empty($_POST['GStorageSecret']) and !empty($_POST['newGStorageBucket'])) { //create new google storage bucket if needed if (!class_exists('CFRuntime')) { require_once dirname(__FILE__) . '/../libs/aws/sdk.class.php'; } try { CFCredentials::set(array('backwpup' => array('key' => $_POST['GStorageAccessKey'], 'secret' => $_POST['GStorageSecret'], 'default_cache_config' => '', 'certificate_authority' => true), '@default' => 'backwpup')); $gstorage = new AmazonS3(); $gstorage->set_hostname('storage.googleapis.com'); $gstorage->allow_hostname_override(false); $gstorage->create_bucket($_POST['newGStorageBucket'], ''); $jobvalues['GStorageBucket'] = $_POST['newGStorageBucket']; sleep(1); //creation take a moment } catch (Exception $e) { $backwpup_message .= __($e->getMessage(), 'backwpup') . '<br />'; } } if (!empty($_POST['newmsazureContainer']) and !empty($_POST['msazureHost']) and !empty($_POST['msazureAccName']) and !empty($_POST['msazureKey'])) { //create new s3 bucket if needed if (!class_exists('Microsoft_WindowsAzure_Storage_Blob')) { require_once dirname(__FILE__) . '/../libs/Microsoft/WindowsAzure/Storage/Blob.php';
/** * Recieves all configuration values and sets up this instance * * All configuration should be handled here * * @param array $config */ protected function configure($config) { // Configurable instance variables (if not set, use the instance default) $this->debug = isset($config['enable-debug-mode']) ? $config['enable-debug-mode'] : $this->debug; $this->folderIcon = $config['icons']['path'] . $config['icons']['directory']; $this->bucket = isset($config['s3-bucket']) ? $config['s3-bucket'] : $this->bucket; $this->rootDirectory = isset($config['doc_root']) ? trim($config['doc_root'], '/ ') : $this->rootDirectory; $this->createRootDir = isset($config['create-root-dir']) ? $config['create-root-dir'] : $this->createRootDir; $this->domain = isset($config['s3-public-domain']) ? $config['s3-public-domain'] : $this->domain; $this->cacheScheme = isset($config['aws-cache-scheme']) ? $config['aws-cache-scheme'] : $this->cacheScheme; $this->cacheExpire = isset($config['aws-cache-expirein']) ? $config['aws-cache-expirein'] : $this->cacheExpire; $this->uploadMaxMb = isset($config['upload']['size']) ? (int) $config['upload']['size'] : $this->uploadMaxMb; // if we are in debug mode, auto-expire cache $this->cacheExpire = $this->debug ? self::DEFAULT_CACHE_EXPIRE : $this->cacheExpire; // set global static credentials CFCredentials::set(array('@default' => array('key' => $config['aws-access-key'], 'secret' => $config['aws-secret-key'], 'default_cache_config' => $this->cacheScheme, 'certificate_authority' => false))); // Instantiate the AmazonS3 class (we should probably be injecting this) $this->s3 = new AmazonS3(); // if we are in debug mode put the http-client into debug mode $this->s3->enable_debug_mode($this->debug); }
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'PUT_YOURS_HERE', 'secret' => 'PUT_YOURS_HERE', 'default_cache_config' => '', 'certificate_authority' => false), '@default' => 'development'));
Some example uses are noted at https://gist.github.com/1478912 Notes: * You can define one or more credential sets. * Credential sets can be named anything that PHP allows for an associative array key; "production", "staging", etc., are just sample values. Feel free to rename them. * A credential set only has four required entries: key, secret, default_cache_config and certificate_authority. Aside from these, you can add any additional bits of information you'd like to keep easily accessible (e.g., multi-factor authentication device key, your AWS Account ID, your canonical identifiers). * Additional credential sets can inherit the properties of another credential set using the @inherit keyword. * If more than one credential set is provided, a default credential set must be specified using the @default keyword. * If you only have one credential set, you can set it to the @default keyword. * View the documentation for the CFCredentials::set() method to view usage examples. ###################################################################################################*/ /** * Create a list of credential sets that can be used with the SDK. */ CFCredentials::set(array('development' => array('key' => 'AKIAIFJIYCMOKM2UFDAA', 'secret' => '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', 'default_cache_config' => '/home/saasbook/CC/cache/', 'certificate_authority' => false), '@default' => 'development'));