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=[]){
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user