Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/Config/AuthRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,72 +20,72 @@ class AuthRoutes extends BaseConfig
public array $routes = [
'register' => [
[
'get',
'GET',
'register',
'RegisterController::registerView',
'register', // Route name
],
[
'post',
'POST',
'register',
'RegisterController::registerAction',
],
],
'login' => [
[
'get',
'GET',
'login',
'LoginController::loginView',
'login', // Route name
],
[
'post',
'POST',
'login',
'LoginController::loginAction',
],
],
'magic-link' => [
[
'get',
'GET',
'login/magic-link',
'MagicLinkController::loginView',
'magic-link', // Route name
],
[
'post',
'POST',
'login/magic-link',
'MagicLinkController::loginAction',
],
[
'get',
'GET',
'login/verify-magic-link',
'MagicLinkController::verify',
'verify-magic-link', // Route name
],
],
'logout' => [
[
'get',
'GET',
'logout',
'LoginController::logoutAction',
'logout', // Route name
],
],
'auth-actions' => [
[
'get',
'GET',
'auth/a/show',
'ActionController::show',
'auth-action-show', // Route name
],
[
'post',
'POST',
'auth/a/handle',
'ActionController::handle',
'auth-action-handle', // Route name
],
[
'post',
'POST',
'auth/a/verify',
'ActionController::verify',
'auth-action-verify', // Route name
Expand Down
2 changes: 1 addition & 1 deletion tests/Authentication/Filters/ChainFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class ChainFilterTest extends AbstractFilterTestCase

public function testFilterNotAuthorized(): void
{
$result = $this->call('get', 'protected-route');
$result = $this->get('protected-route');

$result->assertRedirectTo('/login');

Expand Down
4 changes: 2 additions & 2 deletions tests/Authentication/Filters/GroupFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class GroupFilterTest extends AbstractFilterTestCase

public function testFilterNotAuthorized(): void
{
$result = $this->call('get', 'protected-route');
$result = $this->get('protected-route');

$result->assertRedirectTo('/login');

Expand All @@ -41,7 +41,7 @@ public function testFilterNotAuthorized(): void

public function testFilterNotAuthorizedStoresRedirectToEntranceUrlIntoSession(): void
{
$result = $this->call('get', 'protected-route');
$result = $this->get('protected-route');

$result->assertRedirectTo('/login');

Expand Down
2 changes: 1 addition & 1 deletion tests/Authentication/Filters/HmacFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class HmacFilterTest extends AbstractFilterTestCase

public function testFilterNotAuthorized(): void
{
$result = $this->call('get', 'protected-route');
$result = $this->get('protected-route');

$result->assertStatus(401);

Expand Down
2 changes: 1 addition & 1 deletion tests/Authentication/Filters/JWTFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function setUp(): void

public function testFilterNotAuthorized(): void
{
$result = $this->call('get', 'protected-route');
$result = $this->get('protected-route');

$result->assertStatus(401);

Expand Down
4 changes: 2 additions & 2 deletions tests/Authentication/Filters/PermissionFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class PermissionFilterTest extends AbstractFilterTestCase

public function testFilterNotAuthorized(): void
{
$result = $this->call('get', 'protected-route');
$result = $this->get('protected-route');

$result->assertRedirectTo('/login');

Expand All @@ -41,7 +41,7 @@ public function testFilterNotAuthorized(): void

public function testFilterNotAuthorizedStoresRedirectToEntranceUrlIntoSession(): void
{
$result = $this->call('get', 'protected-route');
$result = $this->get('protected-route');

$result->assertRedirectTo('/login');

Expand Down
4 changes: 2 additions & 2 deletions tests/Authentication/Filters/SessionFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class SessionFilterTest extends AbstractFilterTestCase

public function testFilterNotAuthorized(): void
{
$result = $this->call('get', 'protected-route');
$result = $this->get('protected-route');

$result->assertRedirectTo('/login');

Expand Down Expand Up @@ -140,7 +140,7 @@ public function testRedirectsInactiveUsersToStoredConditionalActivationAction():

public function testStoreRedirectsToEntraceUrlIntoSession(): void
{
$result = $this->call('get', 'protected-route');
$result = $this->get('protected-route');

$result->assertRedirectTo('/login');

Expand Down
2 changes: 1 addition & 1 deletion tests/Authentication/Filters/TokenFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class TokenFilterTest extends AbstractFilterTestCase

public function testFilterNotAuthorized(): void
{
$result = $this->call('get', 'protected-route');
$result = $this->get('protected-route');

$result->assertStatus(401);

Expand Down
Loading