Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 656c2b5

Browse files
fix: switch to new oauth url
1 parent e3b9dc7 commit 656c2b5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

classes/ATLauncherAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function getUser() {
1717
$JSON = new \JSON(JSON_LOOSE_TYPE);
1818
$data = array();
1919

20-
$response = $this->oAuth->request('https://atlauncher.com/admin/oauth/me');
20+
$response = $this->oAuth->request('https://atlauncher.com/oauth/me');
2121
$result = $JSON->decode($response);
2222

2323
if( !empty($result['username']) )

helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public function loadService(&$servicename) {
4242

4343
// The generic service can be externally configured
4444
if(is_a($service->oAuth, 'OAuth\\OAuth2\\Service\\Generic')) {
45-
$service->oAuth->setAuthorizationEndpoint("https://atlauncher.com/admin/oauth/authorize");
46-
$service->oAuth->setAccessTokenEndpoint("https://atlauncher.com/admin/oauth/token");
45+
$service->oAuth->setAuthorizationEndpoint("https://atlauncher.com/oauth/authorize");
46+
$service->oAuth->setAccessTokenEndpoint("https://atlauncher.com/oauth/token");
4747
}
4848

4949
return $service;

phpoauthlib/src/OAuth/OAuth2/Service/ATLauncher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(
2626
parent::__construct($credentials, $httpClient, $storage, $scopes, $baseApiUri);
2727

2828
if (null === $baseApiUri) {
29-
$this->baseApiUri = new Uri('https://atlauncher.com/admin/oauth');
29+
$this->baseApiUri = new Uri('https://atlauncher.com/oauth');
3030
}
3131
}
3232

@@ -43,15 +43,15 @@ protected function getAuthorizationMethod()
4343
*/
4444
public function getAuthorizationEndpoint()
4545
{
46-
return new Uri('https://atlauncher.com/admin/oauth/authorize');
46+
return new Uri('https://atlauncher.com/oauth/authorize');
4747
}
4848

4949
/**
5050
* {@inheritdoc}
5151
*/
5252
public function getAccessTokenEndpoint()
5353
{
54-
return new Uri('https://atlauncher.com/admin/oauth/token');
54+
return new Uri('https://atlauncher.com/oauth/token');
5555
}
5656

5757
/**

0 commit comments

Comments
 (0)