BxDolStudioOAuthOAuth1.php 945 B

1234567891011121314151617181920212223242526272829303132
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaStudio UNA Studio
  7. * @{
  8. */
  9. define('BX_DOL_OAUTH_URL_BASE', BX_DOL_MARKET_URL_ROOT . 'scripts_public/');
  10. define('BX_DOL_OAUTH_URL_REQUEST_TOKEN', BX_DOL_OAUTH_URL_BASE . 'oauth_request_token.php5');
  11. define('BX_DOL_OAUTH_URL_AUTHORIZE', BX_DOL_OAUTH_URL_BASE . 'oauth_authorize.php5');
  12. define('BX_DOL_OAUTH_URL_ACCESS_TOKEN', BX_DOL_OAUTH_URL_BASE . 'oauth_access_token.php5');
  13. define('BX_DOL_OAUTH_URL_FETCH_DATA', BX_DOL_OAUTH_URL_BASE . 'oauth_fetch_data.php5');
  14. class BxDolStudioOAuthOAuth1 extends BxDolStudioOAuth
  15. {
  16. protected function __construct()
  17. {
  18. parent::__construct();
  19. }
  20. protected function unsetAuthorizedUser()
  21. {
  22. $this->oSession->unsetValue(self::$sSessionKeySecret);
  23. parent::unsetAuthorizedUser();
  24. }
  25. }
  26. /** @} */