Edgard Messias 5 лет назад
Родитель
Сommit
25f8fd6195
1 измененных файлов с 1 добавлено и 10 удалено
  1. 1 10
      inc/provider.class.php

+ 1 - 10
inc/provider.class.php

@@ -584,18 +584,9 @@ class PluginSinglesignonProvider extends CommonDBTM {
    }
 
    public function getScope() {
-      $value = "";
-
-      $default = [
-         'github' => 'user:email',
-         'linkedin' => 'r_emailaddress',
-      ];
-
       $type = $this->getClientType();
 
-      if (isset($default[$type])) {
-         $value = $default[$type];
-      }
+      $value = static::getDefault($type, "scope");
 
       $fields = $this->fields;