@@ -106,7 +106,7 @@ |
||
| 106 | 106 | CURLOPT_HTTPHEADER => [], |
| 107 | 107 | CURLOPT_FOLLOWLOCATION => false, |
| 108 | 108 | CURLOPT_PROTOCOLS => $this->allowHttp ? CURLPROTO_HTTPS | CURLPROTO_HTTP : CURLPROTO_HTTPS, |
| 109 | - CURLOPT_HEADERFUNCTION => function ($curlChannel, $headerData) use (&$headerList) { |
|
| 109 | + CURLOPT_HEADERFUNCTION => function($curlChannel, $headerData) use (&$headerList) { |
|
| 110 | 110 | if (false !== strpos($headerData, ':')) { |
| 111 | 111 | list($key, $value) = explode(':', $headerData, 2); |
| 112 | 112 | $headerList[trim($key)] = trim($value); |
@@ -51,9 +51,9 @@ |
||
| 51 | 51 | // the OAuth provider configuration |
| 52 | 52 | $client->setProvider( |
| 53 | 53 | new Provider( |
| 54 | - 'demo_client', // client_id |
|
| 55 | - 'demo_secret', // client_secret |
|
| 56 | - 'http://localhost:8080/authorize.php', // authorization_uri |
|
| 54 | + 'demo_client', // client_id |
|
| 55 | + 'demo_secret', // client_secret |
|
| 56 | + 'http://localhost:8080/authorize.php', // authorization_uri |
|
| 57 | 57 | 'http://localhost:8080/token.php' // token_uri |
| 58 | 58 | ) |
| 59 | 59 | ); |
@@ -51,9 +51,9 @@ |
||
| 51 | 51 | // the OAuth provider configuration |
| 52 | 52 | $client->setProvider( |
| 53 | 53 | new Provider( |
| 54 | - 'demo_client', // client_id |
|
| 55 | - 'demo_secret', // client_secret |
|
| 56 | - 'http://localhost:8080/authorize.php', // authorization_uri |
|
| 54 | + 'demo_client', // client_id |
|
| 55 | + 'demo_secret', // client_secret |
|
| 56 | + 'http://localhost:8080/authorize.php', // authorization_uri |
|
| 57 | 57 | 'http://localhost:8080/token.php' // token_uri |
| 58 | 58 | ) |
| 59 | 59 | ); |