Skip to content

Commit

Permalink
feat: switch toolbox to OAuth v2 endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
warlof committed Jun 18, 2020
1 parent 3848937 commit 63da994
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ function print_tokens($access_token, $refresh_token)
$_SESSION['state'] = uniqid();

// Generate the url with the requested scopes
$url = 'https://login.eveonline.com/oauth/authorize/?response_type=code&redirect_uri=' .
$url = 'https://login.eveonline.com/v2/oauth/authorize/?response_type=code&redirect_uri=' .
urlencode(get_sso_callback_url()) . '&client_id=' .
$_SESSION['clientid'] . '&scope=' . implode(' ', $_REQUEST['scopes']) . ' &state=' . $_SESSION['state'];

Expand Down Expand Up @@ -374,9 +374,9 @@ function print_tokens($access_token, $refresh_token)
]);

// Start a cURL session
$ch = curl_init('https://login.eveonline.com/oauth/token');
$ch = curl_init('https://login.eveonline.com/v2/oauth/token');
curl_setopt_array($ch, [
CURLOPT_URL => 'https://login.eveonline.com/oauth/token',
CURLOPT_URL => 'https://login.eveonline.com/v2/oauth/token',
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $fields,
CURLOPT_HTTPHEADER => $headers,
Expand Down

0 comments on commit 63da994

Please sign in to comment.