Skip to content

Commit

Permalink
ren ame LoginAuth0Adapter to LoginOAuthAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVHG committed Nov 19, 2024
1 parent 6390662 commit a1f655c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/ActionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use CultuurNet\UDB3\JwtProvider\Infrastructure\Service\ExtractClientInformationFromRequest;
use CultuurNet\UDB3\JwtProvider\Infrastructure\Service\ExtractLocaleFromRequest;
use CultuurNet\UDB3\JwtProvider\Infrastructure\Service\IsAllowedRefreshToken;
use CultuurNet\UDB3\JwtProvider\Infrastructure\Service\LoginAuth0Adapter;
use CultuurNet\UDB3\JwtProvider\Infrastructure\Service\LoginOAuthAdapter;
use CultuurNet\UDB3\JwtProvider\Infrastructure\Service\LogOutOAuthAdapter;
use CultuurNet\UDB3\JwtProvider\Infrastructure\Service\RefreshAuth0Adapter;
use GuzzleHttp\Client;
Expand Down Expand Up @@ -118,7 +118,7 @@ public function register(): void

$this->addShared(
LoginServiceInterface::class,
fn (): LoginAuth0Adapter => new LoginAuth0Adapter(
fn (): LoginOAuthAdapter => new LoginOAuthAdapter(
$this->get(Auth0::class)
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Psr\Http\Message\ResponseInterface;
use Slim\Psr7\Response;

final class LoginAuth0Adapter implements LoginServiceInterface
final class LoginOAuthAdapter implements LoginServiceInterface
{
private Auth0Interface $auth0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;

final class LoginAuth0AdapterTest extends TestCase
final class LoginOAuthAdapterTest extends TestCase
{
use ProphecyTrait;

Expand All @@ -25,7 +25,7 @@ public function it_redirects_to_login_page(): void
{
$auth0 = $this->prophesize(Auth0Interface::class);

$auth0adapter = new LoginAuth0Adapter(
$auth0adapter = new LoginOAuthAdapter(
$auth0->reveal()
);

Expand All @@ -49,7 +49,7 @@ public function it_returns_token(): void
{
$auth0 = $this->prophesize(Auth0Interface::class);

$auth0adapter = new LoginAuth0Adapter(
$auth0adapter = new LoginOAuthAdapter(
$auth0->reveal()
);

Expand All @@ -66,7 +66,7 @@ public function it_returns_refresh_token(): void
{
$auth0 = $this->prophesize(Auth0Interface::class);

$auth0adapter = new LoginAuth0Adapter(
$auth0adapter = new LoginOAuthAdapter(
$auth0->reveal()
);

Expand All @@ -84,7 +84,7 @@ public function it_wraps_auth0_exceptions_to_unsuccessful_auth_exception(Excepti
{
$auth0 = $this->prophesize(Auth0Interface::class);

$auth0adapter = new LoginAuth0Adapter(
$auth0adapter = new LoginOAuthAdapter(
$auth0->reveal()
);

Expand Down

0 comments on commit a1f655c

Please sign in to comment.