test config bread

This commit is contained in:
CHIEFSOFT\ameye
2023-07-08 17:26:01 -04:00
parent c934fb85f9
commit 5b4453f1c4
+3 -1
View File
@@ -109,19 +109,21 @@ class WrenchOauth extends BaseController
}
private function prepareOauthEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
log_message('critical', "Started prepareOauthEndPointData -> ".$endpoint );
switch ($endpoint) {
case 'authstart':
// may not need to call back end , juet get the configurations
switch($in["auth_type"]){
case 'GOOGLE':
log_message('critical', "Reading prepareOauthEndPointData -> ".$endpoint );
$local_out["GOOGLE_CLIENT_ID"] = $this->getSiteConfigurations("google.google_client_id");
$local_out["GOOGLE_CLIENT_SECRET"] = $this->getSiteConfigurations("google.google_client_secret");
break;
}
$call_backend=false;
break;
case 'authlogin':
// not really implemented
$in["action"] = WRENCHBOARD_ACCOUNT_AUXLOGIN;
if (!isset($in["login_mode"])){
$in["login_mode"] = MOBILE_LOGIN;