add default scope
This commit is contained in:
parent
2a512fb611
commit
293406eff6
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,9 @@ class Zoom extends OAuth2
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $scopes = [];
|
protected $scopes = [
|
||||||
|
'user_profile'
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -48,6 +50,7 @@ class Zoom extends OAuth2
|
||||||
'client_id' => $this->appID,
|
'client_id' => $this->appID,
|
||||||
'redirect_uri' => $this->callback,
|
'redirect_uri' => $this->callback,
|
||||||
'response_type' => 'code',
|
'response_type' => 'code',
|
||||||
|
'scope' => \implode(' ', $this->getScopes()),
|
||||||
'state' => \json_encode($this->state),
|
'state' => \json_encode($this->state),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue