Browse Source

fix: Fixed default scope

Edgard Messias 5 years ago
parent
commit
25f8fd6195
1 changed files with 1 additions and 10 deletions
  1. 1 10
      inc/provider.class.php

+ 1 - 10
inc/provider.class.php

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