-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f49fea
commit bbcc14e
Showing
7 changed files
with
25 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* Class SteamOpenID | ||
* Class Steam | ||
* | ||
* @created 15.03.2021 | ||
* @author smiley <[email protected]> | ||
|
@@ -24,9 +24,9 @@ | |
* @see https://partner.steamgames.com/doc/webapi_overview | ||
* @see https://steamwebapi.azurewebsites.net/ | ||
*/ | ||
class SteamOpenID extends OAuthProvider implements UserInfo{ | ||
class Steam extends OAuthProvider implements UserInfo{ | ||
|
||
public const IDENTIFIER = 'STEAMOPENID'; | ||
public const IDENTIFIER = 'STEAM'; | ||
|
||
protected string $authorizationURL = 'https://steamcommunity.com/openid/login'; | ||
protected string $accessTokenURL = 'https://steamcommunity.com/openid/login'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* Class SteamOpenIDAPITest | ||
* Class SteamAPITest | ||
* | ||
* @created 15.03.2021 | ||
* @author smiley <[email protected]> | ||
|
@@ -12,19 +12,19 @@ | |
namespace chillerlan\OAuthTest\Providers\Live; | ||
|
||
use chillerlan\OAuth\Core\AuthenticatedUser; | ||
use chillerlan\OAuth\Providers\SteamOpenID; | ||
use chillerlan\OAuth\Providers\Steam; | ||
use PHPUnit\Framework\Attributes\Group; | ||
|
||
/** | ||
* @property \chillerlan\OAuth\Providers\SteamOpenID $provider | ||
* @property \chillerlan\OAuth\Providers\Steam $provider | ||
*/ | ||
#[Group('providerLiveTest')] | ||
final class SteamOpenIDAPITest extends OAuthProviderLiveTestAbstract{ | ||
final class SteamAPITest extends OAuthProviderLiveTestAbstract{ | ||
|
||
protected int $id; | ||
|
||
protected function getProviderFQCN():string{ | ||
return SteamOpenID::class; | ||
return Steam::class; | ||
} | ||
|
||
protected function setUp():void{ | ||
|
@@ -40,7 +40,6 @@ public function testUnauthorizedAccessException():void{ | |
} | ||
|
||
protected function assertMeResponse(AuthenticatedUser $user):void{ | ||
var_dump($user); | ||
$this::assertSame((int)$this->TEST_USER, $user->id); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* Class SteamOpenIDTest | ||
* Class SteamTest | ||
* | ||
* @created 15.03.2021 | ||
* @author smiley <[email protected]> | ||
|
@@ -11,15 +11,15 @@ | |
|
||
namespace chillerlan\OAuthTest\Providers\Unit; | ||
|
||
use chillerlan\OAuth\Providers\SteamOpenID; | ||
use chillerlan\OAuth\Providers\Steam; | ||
|
||
/** | ||
* @property \chillerlan\OAuth\Providers\SteamOpenID $provider | ||
* @property \chillerlan\OAuth\Providers\Steam $provider | ||
*/ | ||
final class SteamOpenIDTest extends OAuthProviderUnitTestAbstract{ | ||
final class SteamTest extends OAuthProviderUnitTestAbstract{ | ||
|
||
protected function getProviderFQCN():string{ | ||
return SteamOpenID::class; | ||
return Steam::class; | ||
} | ||
|
||
public function testMeUnknownErrorException():void{ | ||
|