Skip to content

Commit

Permalink
Updated creating an instance of the GrantedController to not force th…
Browse files Browse the repository at this point in the history
…e client_credentials storage.
  • Loading branch information
F21 committed Jan 23, 2013
1 parent 36b7c4c commit 3746d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OAuth2/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function getGrantController()
if (0 == count($this->grantTypes)) {
$this->grantTypes = $this->getDefaultGrantTypes();
}
$this->grantController = new OAuth2_Controller_GrantController($this->storages['client_credentials'], $this->accessTokenResponseType, $this->grantTypes);
$this->grantController = new OAuth2_Controller_GrantController(reset($this->storages), $this->accessTokenResponseType, $this->grantTypes);
}
return $this->grantController;
}
Expand Down

0 comments on commit 3746d31

Please sign in to comment.