ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10530


Ignore:
Timestamp:
Jan 27, 2009, 10:59:25 PM (11 years ago)
Author:
ShogoKawahara
Message:

#3500:added 030_security.yml of fixtures to set the security token

Location:
OpenPNE3/plugins/opOpenSocialPlugin/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opOpenSocialPlugin/trunk/apps/pc_backend/modules/opOpenSocialPlugin/lib/ApplicationConfigForm.class.php

    r10014 r10530  
    2828      'is_view_profile_application' => new sfWidgetFormInputCheckbox(),
    2929      'home_application_limit'      => new sfWidgetFormInput(),
    30       'application_token_max_age'   => new sfWidgetFormInput(),
    31       'application_cache_time'      => new sfWidgetFormInput(),
     30      'shindig_token_cipher_key'    => new sfWidgetFormInput(),
     31      'shindig_token_hmac_key'      => new sfWidgetFormInput(),
     32      'shindig_token_max_age'       => new sfWidgetFormInput(),
     33      'shindig_cache_time'          => new sfWidgetFormInput(),
    3234    ));
    3335
     
    3638      'is_view_profile_application' => new sfValidatorBoolean(),
    3739      'home_application_limit'      => new sfValidatorInteger(array('min' => 0)),
    38       'application_token_max_age'   => new sfValidatorInteger(array('min' => 0)),
    39       'application_cache_time'      => new sfValidatorInteger(array('min' => 0)),
     40      'shindig_token_cipher_key'    => new sfValidatorString(),
     41      'shindig_token_hmac_key'      => new sfValidatorString(),
     42      'shindig_token_max_age'       => new sfValidatorInteger(array('min' => 0)),
     43      'shindig_cache_time'          => new sfValidatorInteger(array('min' => 0)),
    4044    ));
    4145
     
    4448      'is_view_profile_application' => $is_view_profile_application,
    4549      'home_application_limit'      => SnsConfigPeer::get('home_application_limit', 3),
    46       'application_token_max_age'   => SnsConfigPeer::get('application_max_token_age', 60*60),
    47       'application_cache_time'      => SnsConfigPeer::get('application_cache_time', 24*60*60),
     50      'shindig_token_cipher_key'    => SnsConfigPeer::get('shindig_token_cipher_key'),
     51      'shindig_token_hmac_key'      => SnsConfigPeer::get('shindig_token_hmac_key'),
     52      'shindig_token_max_age'       => SnsConfigPeer::get('shindig_max_token_age', 60*60),
     53      'shindig_cache_time'          => SnsConfigPeer::get('shindig_cache_time', 24*60*60),
    4854    ));
    4955
     
    5258      'is_view_profile_application' => 'プロフィール画面にアプリを表示する',
    5359      'home_application_limit'      => 'ホーム・プロフィール画面のアプリ表示上限',
    54       'application_token_max_age'   => 'トークン有効期限(秒)',
    55       'application_cache_time'      => 'キャッシュ有効期限(秒)',
     60      'shindig_token_cipher_key'    => 'トークン暗号化キー',
     61      'shindig_token_hmac_key'      => 'トークンハッシュ化キー',
     62      'shindig_token_max_age'   => 'トークン有効期限(秒)',
     63      'shindig_cache_time'      => 'キャッシュ有効期限(秒)',
    5664    ));
    5765    $this->widgetSchema->setNameFormat('application_config[%s]');
  • OpenPNE3/plugins/opOpenSocialPlugin/trunk/data/fixtures/010_navigation.yml

    r10278 r10530  
    1111
    1212NavigationI18n:
    13   default_navigation_application_i18n:
     13  default_navigation_application_i18n_en:
     14    id: default_navigation_application
     15    caption: "Applications"
     16    culture: "en"
     17  default_navigation_application_i18n_ja:
    1418    id: default_navigation_application
    1519    caption: "アプリケーション"
    1620    culture: "ja_JP"
    17 
    18   friend_navigation_application_i18n:
     21  friend_navigation_application_i18n_en:
     22    id: friend_navigation_application
     23    caption: "Applications"
     24    culture: "en"
     25  friend_navigation_application_i18n_ja:
    1926    id: friend_navigation_application
    2027    caption: "アプリケーション"
  • OpenPNE3/plugins/opOpenSocialPlugin/trunk/lib/vendor/Shindig/config/local.php

    r10296 r10530  
    77  'default_js_prefix' => $webprefix.'/gadgets/js/',
    88  'default_iframe_prefix' => $webprefix.'/gadgets/ifr?',
    9   'token_max_age' => SnsConfigPeer::get('application_token_max_age', 60*60),
     9
     10  'token_cipher_key' => SnsConfigPeer::get('shindig_token_cipher_key'),
     11  'token_hmac_key' => SnsConfigPeer::get('shindig_token_hmac_key'),
     12  'token_max_age' => SnsConfigPeer::get('shindig_token_max_age', 60*60),
    1013 
    1114  'base_path'      => realpath(dirname(__FILE__).'/..').'/',
     
    2629  'messages_service' => 'opJsonDbOpensocialService',
    2730
    28   'cache_time' => SnsConfigPeer::get('application_cache_time', 60*60),
     31  'cache_time' => SnsConfigPeer::get('shindig_cache_time', 60*60),
    2932  'cache_root' => sfConfig::get('sf_app_cache_dir').'/plugins/opOpenSocialPlugin',
    3033
Note: See TracChangeset for help on using the changeset viewer.