diff --git a/www-api/app/Controllers/WrenchOauth.php b/www-api/app/Controllers/WrenchOauth.php index 0b9005ed..537973a8 100644 --- a/www-api/app/Controllers/WrenchOauth.php +++ b/www-api/app/Controllers/WrenchOauth.php @@ -112,9 +112,13 @@ class WrenchOauth extends BaseController switch ($endpoint) { case 'authstart': // may not need to call back end , juet get the configurations - $local_out=['google','1234567']; - + switch($in["auth_type"]){ + case 'GOOGLE': + $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':