diff --git a/classes/model/CliOAuth2Client.php b/classes/model/CliOAuth2Client.php
index aabba3e09d9e61553eab9827b2faa3512e96441d..f549c74b30a697bce79ea73a61f9d8b2b926a11a 100644
--- a/classes/model/CliOAuth2Client.php
+++ b/classes/model/CliOAuth2Client.php
@@ -15,7 +15,7 @@ class CliOAuth2Client {
     public function __construct(object $config) {
         $this->id = $config->id;
         $this->secretHash = $config->secret;
-        $this->scope = $config->scope;
+        $this->scope = explode(" ", $config->scope);
         $this->audience = $config->audience;
     }
 
diff --git a/config-example.yaml b/config-example.yaml
index dbb218ed805a3f1e91c2cc34e41c9250550bc580..cf625bb8b14cb57781f7fda6d1fe0f14f7877469 100644
--- a/config-example.yaml
+++ b/config-example.yaml
@@ -74,4 +74,4 @@ cliClients:
   - id: gms_cli
     secret: 2a97516c354b68848cdbd8f54a226a0a55b21ed138e207ad6c5cbb9c00aa5aea
     scope: "read:gms write:gms read:rap"
-    audience: gms
\ No newline at end of file
+    audience: [gms]
\ No newline at end of file