Skip to content

Commit

Permalink
Merge f44109a into 82bf3e8
Browse files Browse the repository at this point in the history
  • Loading branch information
roptch committed Nov 7, 2019
2 parents 82bf3e8 + f44109a commit cc25d47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Bynder/Api/BynderClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ public function getAssetBankManager()
* Returns the Oauth authorization url for user login.
*
* @param array $scope Custom scopes can be passed to override the defaults
* @param string $state Custom state can be passed to override the default random generation
*
* @return string
*/
public function getAuthorizationUrl(array $scope)
public function getAuthorizationUrl(array $scope, $state = null)
{
return $this->requestHandler->getAuthorizationUrl([
'state' => sprintf('domain=%s', $this->configuration->getBynderDomain()),
'state' => $state,
'scope' => implode(' ', $scope)
]);
}
Expand Down

0 comments on commit cc25d47

Please sign in to comment.