Skip to content
Merged
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
2 changes: 2 additions & 0 deletions config/corppass-login.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Accredifysg\SingPassLogin\Http\Controllers\CorpPass\LoginCallbackController;
use Accredifysg\SingPassLogin\Http\Controllers\CorpPass\LoginController;
use Accredifysg\SingPassLogin\Listeners\CorpPassSuccessfulLoginListener;
Expand Down
2 changes: 2 additions & 0 deletions config/myinfo.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Accredifysg\SingPassLogin\Http\Controllers\SingPass\MyInfoCallbackController;
use Accredifysg\SingPassLogin\Http\Controllers\SingPass\MyInfoController;

Expand Down
2 changes: 2 additions & 0 deletions config/ndi.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Accredifysg\SingPassLogin\Http\Controllers\GetJwksEndpointController;

return [
Expand Down
2 changes: 2 additions & 0 deletions config/singpass-login.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Accredifysg\SingPassLogin\Http\Controllers\SingPass\LoginCallbackController;
use Accredifysg\SingPassLogin\Http\Controllers\SingPass\LoginController;
use Accredifysg\SingPassLogin\Listeners\SingPassSuccessfulLoginListener;
Expand Down
3 changes: 2 additions & 1 deletion database/factories/UserFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Database\Factories;

use Accredifysg\SingPassLogin\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;

/**
Expand Down
2 changes: 2 additions & 0 deletions database/migrations/add_corppass_entity_id_to_users_table.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;

Expand Down
2 changes: 2 additions & 0 deletions database/migrations/add_nric_to_users_table.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;

Expand Down
2 changes: 2 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Illuminate\Support\Facades\Route;

Route::middleware('web')->group(function () {
Expand Down
2 changes: 2 additions & 0 deletions src/DTOs/FapiCallbackResult.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\DTOs;

readonly class FapiCallbackResult
Expand Down
2 changes: 2 additions & 0 deletions src/DTOs/FapiSessionContext.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\DTOs;

use Jose\Component\Core\JWK;
Expand Down
2 changes: 2 additions & 0 deletions src/DTOs/OpenIdConfigurationDto.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\DTOs;

use Accredifysg\SingPassLogin\Exceptions\OpenIdDiscoveryException;
Expand Down
2 changes: 2 additions & 0 deletions src/DTOs/ProviderConfig.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\DTOs;

use Accredifysg\SingPassLogin\Exceptions\MissingConfigException;
Expand Down
2 changes: 2 additions & 0 deletions src/DTOs/TokenResponseDto.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\DTOs;

readonly class TokenResponseDto
Expand Down
2 changes: 2 additions & 0 deletions src/Events/CorpPassDataRetrievedEvent.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Events;

readonly class CorpPassDataRetrievedEvent
Expand Down
2 changes: 2 additions & 0 deletions src/Events/CorpPassSuccessfulLoginEvent.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Events;

use Accredifysg\SingPassLogin\Models\CorpPassUser;
Expand Down
2 changes: 2 additions & 0 deletions src/Events/MyInfoDataRetrievedEvent.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Events;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Events/SingPassSuccessfulLoginEvent.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Events;

use Accredifysg\SingPassLogin\Models\SingPassUser;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/AuthFlowException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/AuthenticationErrorException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/CorpPassLoginException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/JweDecryptionFailedException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/JwksException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/JwksInvalidException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/JwtDecodeFailedException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/JwtPayloadException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/MissingConfigException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use RuntimeException;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/OpenIdDiscoveryException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/PushedAuthorizationRequestException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/SingPassLoginException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/TokenExchangeException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/UserInfoDecryptionException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/UserInfoRequestException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/UserInfoVerificationException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Exceptions;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Controllers/CorpPass/LoginCallbackController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Http\Controllers\CorpPass;

use Accredifysg\SingPassLogin\DTOs\ProviderConfig;
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Controllers/CorpPass/LoginController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Http\Controllers\CorpPass;

use Accredifysg\SingPassLogin\DTOs\ProviderConfig;
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Controllers/GetJwksEndpointController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Http\Controllers;

use Accredifysg\SingPassLogin\Exceptions\JwksInvalidException;
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Controllers/SingPass/LoginCallbackController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Http\Controllers\SingPass;

use Accredifysg\SingPassLogin\DTOs\ProviderConfig;
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Controllers/SingPass/LoginController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Http\Controllers\SingPass;

use Accredifysg\SingPassLogin\DTOs\ProviderConfig;
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Controllers/SingPass/MyInfoCallbackController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Http\Controllers\SingPass;

use Accredifysg\SingPassLogin\DTOs\ProviderConfig;
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Controllers/SingPass/MyInfoController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Http\Controllers\SingPass;

use Accredifysg\SingPassLogin\DTOs\ProviderConfig;
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/CodeChallengeVerifierServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Interfaces;

interface CodeChallengeVerifierServiceInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/DPoPServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Interfaces;

use Jose\Component\Core\JWK;
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/GetUserInfoServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Interfaces;

use Jose\Component\Core\JWK;
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/JwksServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Interfaces;

use Jose\Component\Core\JWKSet;
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/JwtServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Interfaces;

use Jose\Component\Core\JWKSet;
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/OpenIdDiscoveryServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Interfaces;

interface OpenIdDiscoveryServiceInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/PushedAuthorizationRequestServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Interfaces;

interface PushedAuthorizationRequestServiceInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/TokenExchangeServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Interfaces;

use Accredifysg\SingPassLogin\DTOs\TokenResponseDto;
Expand Down
2 changes: 2 additions & 0 deletions src/Listeners/CorpPassSuccessfulLoginListener.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Accredifysg\SingPassLogin\Listeners;

use Accredifysg\SingPassLogin\Events\CorpPassSuccessfulLoginEvent;
Expand Down
Loading
Loading