test config bread
This commit is contained in:
@@ -109,19 +109,21 @@ class WrenchOauth extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function prepareOauthEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
|
private function prepareOauthEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
|
||||||
|
log_message('critical', "Started prepareOauthEndPointData -> ".$endpoint );
|
||||||
switch ($endpoint) {
|
switch ($endpoint) {
|
||||||
case 'authstart':
|
case 'authstart':
|
||||||
// may not need to call back end , juet get the configurations
|
// may not need to call back end , juet get the configurations
|
||||||
switch($in["auth_type"]){
|
switch($in["auth_type"]){
|
||||||
case 'GOOGLE':
|
case 'GOOGLE':
|
||||||
|
log_message('critical', "Reading prepareOauthEndPointData -> ".$endpoint );
|
||||||
$local_out["GOOGLE_CLIENT_ID"] = $this->getSiteConfigurations("google.google_client_id");
|
$local_out["GOOGLE_CLIENT_ID"] = $this->getSiteConfigurations("google.google_client_id");
|
||||||
$local_out["GOOGLE_CLIENT_SECRET"] = $this->getSiteConfigurations("google.google_client_secret");
|
$local_out["GOOGLE_CLIENT_SECRET"] = $this->getSiteConfigurations("google.google_client_secret");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
$call_backend=false;
|
$call_backend=false;
|
||||||
break;
|
break;
|
||||||
case 'authlogin':
|
case 'authlogin':
|
||||||
|
// not really implemented
|
||||||
$in["action"] = WRENCHBOARD_ACCOUNT_AUXLOGIN;
|
$in["action"] = WRENCHBOARD_ACCOUNT_AUXLOGIN;
|
||||||
if (!isset($in["login_mode"])){
|
if (!isset($in["login_mode"])){
|
||||||
$in["login_mode"] = MOBILE_LOGIN;
|
$in["login_mode"] = MOBILE_LOGIN;
|
||||||
|
|||||||
Reference in New Issue
Block a user