Skip to content

Commit

Permalink
Merge pull request #4 from softonic/feature/update-oauth-server-by-de…
Browse files Browse the repository at this point in the history
…fault

Update OAuth server DNS to v3
  • Loading branch information
jeurrutia authored Feb 6, 2020
2 parents f41e8b3 + 58f1ffe commit f9bc60a
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 @@ -9,7 +9,7 @@

class Softonic extends AbstractProvider
{
const OAUTH_HOSTNAME = 'oauth-v2.softonic.com';
const OAUTH_HOSTNAME = 'oauth-v3.softonic.com';

/**
* Returns the base URL for authorizing a client.
Expand Down
4 changes: 2 additions & 2 deletions tests/Provider/SoftonicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public function setUp()

public function testGetBaseAuthorizationUrl()
{
$expectedUrl = 'https://oauth-v2.softonic.com/authorize';
$expectedUrl = 'https://oauth-v3.softonic.com/authorize';
$this->assertSame($expectedUrl, $this->provider->getBaseAuthorizationUrl());
}

public function testGetBaseAccessTokenUrl()
{
$expectedUrl = 'https://oauth-v2.softonic.com/token';
$expectedUrl = 'https://oauth-v3.softonic.com/token';
$this->assertSame($expectedUrl, $this->provider->getBaseAccessTokenUrl([]));
}

Expand Down

0 comments on commit f9bc60a

Please sign in to comment.