Skip to content

Commit 81e29c9

Browse files
committed
Merge pull request #3 from genslein/TokenEndpointSwitch
switching token endpoint off of matrix
2 parents cb702a2 + b803c53 commit 81e29c9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/CareerBuilder/OAuth2/Flows/ClientCredentials.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private function getClientCredentialsClaims()
4141
return array(
4242
'iss' => $this->clientId,
4343
'sub' => $this->clientId,
44-
'aud' => 'http://www.careerbuilder.com/share/oauth2/token.aspx',
44+
'aud' => 'https://api.careerbuilder.com/oauth/token',
4545
'exp' => time() + 180
4646
);
4747
}

src/CareerBuilder/OAuth2/Flows/Flow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getToken(AccessToken $token = null)
100100
$this->buildBody();
101101
}
102102

103-
$request = $this->client->post('/share/oauth2/token.aspx', $this->headers, $this->body);
103+
$request = $this->client->post('/oauth/token', $this->headers, $this->body);
104104
$response = $request->send();
105105
$data = $response->json();
106106

usage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function log($logLevel, $message, array $context = array())
2727
'client_id' => '',
2828
'client_secret' => '',
2929
'shared_secret' => '',
30-
'base_url' => 'https://wwwtest.careerbuilder.com'
30+
'base_url' => 'https://wwwtest.api.careerbuilder.com'
3131
);
3232

3333
$logger = new Logger();

0 commit comments

Comments
 (0)