diff --git a/controllers/oauth/AuthHandler.php b/controllers/oauth/AuthHandler.php index 00d687f770ae3ec24613f91579d47560a65025e5..d9bd124e74b51f05bd361a2621e018da743c8474 100755 --- a/controllers/oauth/AuthHandler.php +++ b/controllers/oauth/AuthHandler.php @@ -25,7 +25,17 @@ class AuthHandler { $attributes = $this->client->getUserAttributes(); - if($this->client->getId() == "ademe" || $this->client->getId() == "tierslieuxorg" || $this->client->getId() == "fabmobio" || $this->client->getId() == "tierslieuxoccitanie"){ + if($this->client->getId() == "ademe" || $this->client->getId() == "tierslieuxorg" || $this->client->getId() == "fabmobio" || $this->client->getId() == "tierslieuxoccitanie" || $this->client->getId() == "lescaecoop") { + // service configuré ici + // var_dump($attributes); + // exit; + // $email = ArrayHelper::getValue($attributes, 'email'); + // $name = ArrayHelper::getValue($attributes, 'name'); + // $username = ArrayHelper::getValue($attributes, 'preferred_username'); + // if(empty($username)){ + // $username = ArrayHelper::getValue($attributes, 'username'); + // } + // $id = ArrayHelper::getValue($attributes, 'sub'); $email = ArrayHelper::getValue($attributes, 'email'); $name = ArrayHelper::getValue($attributes, 'name'); $username = ArrayHelper::getValue($attributes, 'preferred_username');