OAuth 配置

OAuth 的所有配置都在 config/oauth.php 中, 配置文件是按照提供者名字组织。

示例配置文件

  1. return array(
  2. /**
  3. * Twitter application registration: https://twitter.com/apps
  4. */
  5. 'twitter' => array(
  6. 'key' => 'your consumer key',
  7. 'secret' => 'your consumer secret'
  8. ),
  9. /**
  10. * Google application registration: https://www.google.com/accounts/ManageDomains
  11. */
  12. 'google' => array(
  13. 'key' => 'your domain name',
  14. 'secret' => 'your consumer secret'
  15. ),
  16. );

[!!] 每种授权提供者都 必须 定义用户key 和 secret。