Skip to content

Commit

Permalink
Upgrade default Oauth URL. (#7)
Browse files Browse the repository at this point in the history
Upgrade default Oauth URL.

---------

Co-authored-by: Jose Manuel Cardona <josemanuel.cardona@softonic.com>
  • Loading branch information
joskfg and Jose Manuel Cardona authored Jul 17, 2024
1 parent 2b68b8c commit 18a13cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Provider/Softonic.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/Provider/SoftonicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([]));
}

Expand Down

0 comments on commit 18a13cb

Please sign in to comment.