fix(security): removed client_secret from frontend registration
This commit is contained in:
0
local/components/conmed/sso.register/.class.php.0.bak
Normal file → Executable file
0
local/components/conmed/sso.register/.class.php.0.bak
Normal file → Executable file
4
local/components/conmed/sso.register/class.php
Normal file → Executable file
4
local/components/conmed/sso.register/class.php
Normal file → Executable file
@@ -16,13 +16,13 @@ class ConmedSsoRegister extends CBitrixComponent {
|
||||
|
||||
$request = Context::getCurrent()->getRequest();
|
||||
|
||||
// 1. Обработка AJAX регистрации
|
||||
// 1. Обработка AJAX регистрации
|
||||
if ($request->isPost() && $request->get('ajax_reg') == 'y') {
|
||||
$this->handleRegister($request);
|
||||
return;
|
||||
}
|
||||
|
||||
// 2. Подготовка данных для формы через InternalDataTrait
|
||||
// 2. Подготовка данных для формы через InternalDataTrait
|
||||
$geo = Api::getGeoForComponent();
|
||||
$this->arResult['COUNTRIES'] = $geo['countries'];
|
||||
$this->arResult['CITIES'] = $geo['cities'];
|
||||
|
||||
0
local/components/conmed/sso.register/templates/.default/.template.php.0.bak
Normal file → Executable file
0
local/components/conmed/sso.register/templates/.default/.template.php.0.bak
Normal file → Executable file
2
local/components/conmed/sso.register/templates/.default/template.php
Normal file → Executable file
2
local/components/conmed/sso.register/templates/.default/template.php
Normal file → Executable file
@@ -9,7 +9,7 @@
|
||||
cities: <?=json_encode($arResult['CITIES'])?>
|
||||
};
|
||||
var cmSessid = '<?=bitrix_sessid()?>';
|
||||
var cmDefaultClientId = '<?=$arResult['CLIENT_ID']?>'; // Публичный ID клиента для редиректов
|
||||
var cmDefaultClientId = '<?=$arResult['CLIENT_ID']?>'; // Публичный ID клиента для редиректов
|
||||
</script>
|
||||
|
||||
<div class="cm-auth-card">
|
||||
|
||||
0
local/modules/conmed.authserver/.reinstall_agent.php
Normal file → Executable file
0
local/modules/conmed.authserver/.reinstall_agent.php
Normal file → Executable file
0
local/modules/conmed.authserver/install/index.php
Normal file → Executable file
0
local/modules/conmed.authserver/install/index.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/.groupstrait.php.bak
Normal file → Executable file
0
local/modules/conmed.authserver/lib/.groupstrait.php.bak
Normal file → Executable file
0
local/modules/conmed.authserver/lib/.internaldatatrait.php.bak
Normal file → Executable file
0
local/modules/conmed.authserver/lib/.internaldatatrait.php.bak
Normal file → Executable file
0
local/modules/conmed.authserver/lib/.registrationtrait.php.bak
Normal file → Executable file
0
local/modules/conmed.authserver/lib/.registrationtrait.php.bak
Normal file → Executable file
0
local/modules/conmed.authserver/lib/api.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/api.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/authtokentrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/authtokentrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/credentialstrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/credentialstrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/dictionariestrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/dictionariestrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/groupstrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/groupstrait.php
Normal file → Executable file
2
local/modules/conmed.authserver/lib/internaldatatrait.php
Normal file → Executable file
2
local/modules/conmed.authserver/lib/internaldatatrait.php
Normal file → Executable file
@@ -6,7 +6,7 @@ use Bitrix\Main\Loader;
|
||||
trait InternalDataTrait {
|
||||
|
||||
/**
|
||||
* Возвращает Client ID по умолчанию для локальной регистрации и системных нужд
|
||||
* Возвращает Client ID по умолчанию для локальной регистрации и системных нужд
|
||||
* @return string
|
||||
*/
|
||||
public static function getDefaultClientId() {
|
||||
|
||||
0
local/modules/conmed.authserver/lib/profiletrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/profiletrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/profiletrait.php.bak
Normal file → Executable file
0
local/modules/conmed.authserver/lib/profiletrait.php.bak
Normal file → Executable file
0
local/modules/conmed.authserver/lib/registrationtrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/registrationtrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/securitytrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/securitytrait.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/webhook.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/webhook.php
Normal file → Executable file
0
local/modules/conmed.authserver/lib/webhook.php.0.bak
Normal file → Executable file
0
local/modules/conmed.authserver/lib/webhook.php.0.bak
Normal file → Executable file
0
local/modules/conmed.authserver/man.txt
Normal file → Executable file
0
local/modules/conmed.authserver/man.txt
Normal file → Executable file
0
local/modules/conmed.authserver/options.php
Normal file → Executable file
0
local/modules/conmed.authserver/options.php
Normal file → Executable file
0
local/modules/conmed.authserver/options.php.0.bak
Normal file → Executable file
0
local/modules/conmed.authserver/options.php.0.bak
Normal file → Executable file
Reference in New Issue
Block a user