google config call
This commit is contained in:
@@ -112,9 +112,13 @@ class WrenchOauth extends BaseController
|
|||||||
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
|
||||||
$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;
|
$call_backend=false;
|
||||||
break;
|
break;
|
||||||
case 'authlogin':
|
case 'authlogin':
|
||||||
|
|||||||
Reference in New Issue
Block a user