浏览代码

fix: Fixed default scope

Edgard Messias 5 年之前
父节点
当前提交
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;