Skip to content

Commit

Permalink
array expected
Browse files Browse the repository at this point in the history
  • Loading branch information
jdelaune committed Sep 30, 2013
1 parent de53248 commit d953aaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<parameter key="verify_uri">https://www.example.com/verify</parameter>
<parameter key="authorize_uri">https://www.example.com/authorize</parameter>
<parameter key="token_uri">https://www.example.com/token</parameter>
<parameter key="validate_ssl">true</parameter>
</parameter>
</parameters>
<services>
Expand Down
2 changes: 1 addition & 1 deletion Security/Firewall/OAuth2AuthorizationCodeListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected function attemptAuthentication(Request $request)

$client = new Client();
if ($this->validateSSL === false) {
$client = new Client(null, 'ssl.certificate_authority' => FALSE);
$client = new Client(null, array('ssl.certificate_authority' => FALSE));
}
$api_request = $client->post(
$this->serverTokenUri,
Expand Down
2 changes: 1 addition & 1 deletion Security/User/OAuth2UserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function loadUserByAccessToken($access_token)
// Verify Access Token and get details back
$client = new Client();
if ($this->validateSSL === false) {
$client = new Client(null, 'ssl.certificate_authority' => FALSE);
$client = new Client(null, array('ssl.certificate_authority' => FALSE));
}
$request = $client->get(
$this->serverVerifyUri,
Expand Down

0 comments on commit d953aaf

Please sign in to comment.