| @@ 19-23 (lines=5) @@ | ||
| 16 | */ |
|
| 17 | $sharedSecret = ''; |
|
| 18 | $baseUrl = ''; |
|
| 19 | if (file_exists('payload.json')) { |
|
| 20 | $payload = json_decode(file_get_contents('payload.json')); |
|
| 21 | $sharedSecret = $payload->sharedSecret; |
|
| 22 | $baseUrl = $payload->baseUrl . '/'; |
|
| 23 | } |
|
| 24 | ||
| 25 | ||
| 26 | $authenticationMethod = new QueryParamAuthentication('eu.adlogix.confluence-client', $sharedSecret); |
|
| @@ 14-18 (lines=5) @@ | ||
| 11 | * The sharedSecret is given by the application we installed the add-on to, |
|
| 12 | * this is needed to sign our request and to validate the requests from the application. |
|
| 13 | */ |
|
| 14 | if (file_exists('payload.json')) { |
|
| 15 | $payload = json_decode(file_get_contents('payload.json')); |
|
| 16 | $sharedSecret = $payload->sharedSecret; |
|
| 17 | $baseUrl = $payload->baseUrl . '/'; |
|
| 18 | } |
|
| 19 | ||
| 20 | ||
| 21 | $authenticationMethod = new QueryParamAuthentication('eu.adlogix.confluence-client', $sharedSecret); |
|