diff --git a/src/Provider/Softonic.php b/src/Provider/Softonic.php index e4ee68c..4d99f6c 100644 --- a/src/Provider/Softonic.php +++ b/src/Provider/Softonic.php @@ -14,7 +14,7 @@ class Softonic extends AbstractProvider private function getOAuthHost(): string { - return getenv('OAUTH_HOST') ?: 'https://oauth-v3.softonic.com'; + return getenv('OAUTH_HOST') ?: 'https://oauth-v5.softonic.com/realms/softonic/protocol/openid-connect'; } /** diff --git a/tests/Provider/SoftonicTest.php b/tests/Provider/SoftonicTest.php index a16c98a..992b828 100644 --- a/tests/Provider/SoftonicTest.php +++ b/tests/Provider/SoftonicTest.php @@ -20,13 +20,13 @@ protected function setUp(): void public function testGetBaseAuthorizationUrl() { - $expectedUrl = 'https://oauth-v3.softonic.com/authorize'; + $expectedUrl = 'https://oauth-v5.softonic.com/realms/softonic/protocol/openid-connect/authorize'; $this->assertSame($expectedUrl, $this->provider->getBaseAuthorizationUrl()); } public function testGetBaseAccessTokenUrl() { - $expectedUrl = 'https://oauth-v3.softonic.com/token'; + $expectedUrl = 'https://oauth-v5.softonic.com/realms/softonic/protocol/openid-connect/token'; $this->assertSame($expectedUrl, $this->provider->getBaseAccessTokenUrl([])); }