Fixed oversight in URL construction.

This commit is contained in:
flash 2024-11-16 04:25:23 +00:00
parent 8712013261
commit 58cbf592fe
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
0.1.0 0.1.1

View file

@ -91,7 +91,7 @@ class OAuth2Client {
$args['client_id'] = $clientId; $args['client_id'] = $clientId;
} }
$request = $this->httpClient->createRequest('POST', '/oauth2/request-authorise'); $request = $this->httpClient->createRequest('POST', $this->urls->getApiUrl('/oauth2/request-authorise'));
$request->setBodyParams($args); $request->setBodyParams($args);
$response = $useAnonymous $response = $useAnonymous
@ -148,7 +148,7 @@ class OAuth2Client {
$args['client_secret'] = $clientSecret; $args['client_secret'] = $clientSecret;
} }
$request = $this->httpClient->createRequest('POST', '/oauth2/token'); $request = $this->httpClient->createRequest('POST', $this->urls->getApiUrl('/oauth2/token'));
$request->setBodyParams($args); $request->setBodyParams($args);
$response = $useAnonymous $response = $useAnonymous