BxAzrConConfig.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 AzureConnect Azure Connect
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxAzrConConfig extends BxBaseModConnectConfig
  12. {
  13. public $sTenantID = 'common';
  14. public $sClientID;
  15. public $sSecret;
  16. public $sAuthMethod = 'secret'; // certificate isn't supported yet
  17. public $sScope = 'User.Read';// 'openid%20offline_access%20profile%20user.read';
  18. public $sLogoutUrl = 'https://login.microsoftonline.com/common/wsfederation?wa=wsignout1.0';
  19. public $sPageStart;
  20. public $sPageHandle;
  21. function __construct($aModule)
  22. {
  23. parent::__construct($aModule);
  24. $this -> sTenantID = getParam('bx_azrcon_tenant_id');
  25. $this -> sClientID = getParam('bx_azrcon_client_id');
  26. $this -> sSecret = getParam('bx_azrcon_secret');
  27. $this -> sEmailTemplatePasswordGenerated = 'bx_azrcon_password_generated';
  28. $this -> sDefaultTitleLangKey = '_bx_azrcon';
  29. $this -> sRedirectPage = getParam('bx_azrcon_redirect_page');
  30. $this -> sProfilesModule = getParam('bx_azrcon_module');
  31. $this -> isAlwaysConfirmEmail = (bool)getParam('bx_azrcon_confirm_email');
  32. $this -> isAlwaysAutoApprove = (bool)getParam('bx_azrcon_approve');
  33. $this -> sPageStart = BX_DOL_URL_ROOT . $this -> getBaseUri() . 'start';
  34. $this -> sPageHandle = BX_DOL_URL_ROOT . $this -> getBaseUri() . 'handle';
  35. }
  36. }
  37. /** @} */