From 18a13cb4d5f2fce04a0ce3fce33a3721e302fa85 Mon Sep 17 00:00:00 2001 From: joskfg Date: Wed, 17 Jul 2024 16:14:51 +0200 Subject: [PATCH] Upgrade default Oauth URL. (#7) Upgrade default Oauth URL. --------- Co-authored-by: Jose Manuel Cardona --- src/Provider/Softonic.php | 2 +- tests/Provider/SoftonicTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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([])); }