/home/desid573/public_html/angel/payment/xero
NameSizeModeActions
docs/-0755rm
lib/-0755rm
test/-0755rm
vendor/-0755rm
__MACOSX/-0755rm
authorisation.php19060644editdlrm
authorizedResource.php17420644editdlrm
callback.php22630644editdlrm
CODE_OF_CONDUCT.md33440644editdlrm
composer.json9840644editdlrm
CONTRIBUTING.md54530644editdlrm
error_log434770644editdlrm
getInvoice.php45570644editdlrm
git_push.sh16610644editdlrm
phpunit.xml.dist6880644editdlrm
README.md109520644editdlrm
storage.php15570644editdlrm
vendor.zip8862410644editdlrm
Edit: /home/desid573/public_html/angel/payment/xero/authorisation.php (1906B)
'0019D1B665CC45AE9D0B78C189A265AC', 'clientSecret' => 'thiiEp0E7ZSZPmQW58Oe9x3Ek_hmmd9fggVtdUD0EpFlZVII', 'redirectUri' => 'https://desidrivers.com.au/angel/payment/xero/callback.php', 'urlAuthorize' => 'https://login.xero.com/identity/connect/authorize', 'urlAccessToken' => 'https://identity.xero.com/connect/token', 'urlResourceOwnerDetails' => 'https://api.xero.com/api.xro/2.0/Organisation' ]); // If we don't have an authorization code then get one if (!isset($_GET['code'])) { $options = [ 'scope' => ['openid email profile offline_access accounting.settings accounting.transactions accounting.contacts accounting.journals.read accounting.reports.read accounting.attachments'] ]; // Fetch the authorization URL from the provider; this returns the urlAuthorize option and generates and applies any necessary parameters (e.g. state). $authorizationUrl = $provider->getAuthorizationUrl($options); // Get the state generated for you and store it to the session. $_SESSION['oauth2state'] = $provider->getState(); // Redirect the user to the authorization URL. header('Location: ' . $authorizationUrl); exit(); // Check given state against previously stored one to mitigate CSRF attack } elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) { unset($_SESSION['oauth2state']); exit('Invalid state'); } else { //no action } ?>