├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── phpunit.xml ├── src ├── Console │ ├── GenerateCommand.php │ ├── GenerateSealingKeyPair.php │ ├── GenerateSharedAuthenticationKey.php │ ├── GenerateSharedEncryptionKey.php │ └── GenerateSigningKeyPair.php ├── KeyResolver │ ├── Resolver.php │ ├── StaticResolver.php │ └── UserResolver.php ├── Middleware │ ├── SealResponse.php │ ├── SharedAuthenticateResponse.php │ ├── SharedDecryptRequest.php │ ├── SharedEncryptResponse.php │ ├── SharedVerifyRequest.php │ ├── SignResponse.php │ ├── UnsealRequest.php │ └── VerifyRequest.php ├── ReplacesRequests.php ├── SapientServiceProvider.php └── config.php └── tests ├── KeyResolver ├── StaticResolverTest.php └── TestCase.php ├── Middleware ├── SealResponseTest.php ├── SharedAuthenticateResponseTest.php ├── SharedDecryptRequestTest.php ├── SharedEncryptResponseTest.php ├── SharedVerifyRequestTest.php ├── SignResponseTest.php ├── TestCase.php ├── UnsealRequestTest.php └── VerifyRequestTest.php └── TestCase.php /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /composer.lock 3 | /vendor 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Console/GenerateCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Console/GenerateCommand.php -------------------------------------------------------------------------------- /src/Console/GenerateSealingKeyPair.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Console/GenerateSealingKeyPair.php -------------------------------------------------------------------------------- /src/Console/GenerateSharedAuthenticationKey.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Console/GenerateSharedAuthenticationKey.php -------------------------------------------------------------------------------- /src/Console/GenerateSharedEncryptionKey.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Console/GenerateSharedEncryptionKey.php -------------------------------------------------------------------------------- /src/Console/GenerateSigningKeyPair.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Console/GenerateSigningKeyPair.php -------------------------------------------------------------------------------- /src/KeyResolver/Resolver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/KeyResolver/Resolver.php -------------------------------------------------------------------------------- /src/KeyResolver/StaticResolver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/KeyResolver/StaticResolver.php -------------------------------------------------------------------------------- /src/KeyResolver/UserResolver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/KeyResolver/UserResolver.php -------------------------------------------------------------------------------- /src/Middleware/SealResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Middleware/SealResponse.php -------------------------------------------------------------------------------- /src/Middleware/SharedAuthenticateResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Middleware/SharedAuthenticateResponse.php -------------------------------------------------------------------------------- /src/Middleware/SharedDecryptRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Middleware/SharedDecryptRequest.php -------------------------------------------------------------------------------- /src/Middleware/SharedEncryptResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Middleware/SharedEncryptResponse.php -------------------------------------------------------------------------------- /src/Middleware/SharedVerifyRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Middleware/SharedVerifyRequest.php -------------------------------------------------------------------------------- /src/Middleware/SignResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Middleware/SignResponse.php -------------------------------------------------------------------------------- /src/Middleware/UnsealRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Middleware/UnsealRequest.php -------------------------------------------------------------------------------- /src/Middleware/VerifyRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/Middleware/VerifyRequest.php -------------------------------------------------------------------------------- /src/ReplacesRequests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/ReplacesRequests.php -------------------------------------------------------------------------------- /src/SapientServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/SapientServiceProvider.php -------------------------------------------------------------------------------- /src/config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/src/config.php -------------------------------------------------------------------------------- /tests/KeyResolver/StaticResolverTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/KeyResolver/StaticResolverTest.php -------------------------------------------------------------------------------- /tests/KeyResolver/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/KeyResolver/TestCase.php -------------------------------------------------------------------------------- /tests/Middleware/SealResponseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/Middleware/SealResponseTest.php -------------------------------------------------------------------------------- /tests/Middleware/SharedAuthenticateResponseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/Middleware/SharedAuthenticateResponseTest.php -------------------------------------------------------------------------------- /tests/Middleware/SharedDecryptRequestTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/Middleware/SharedDecryptRequestTest.php -------------------------------------------------------------------------------- /tests/Middleware/SharedEncryptResponseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/Middleware/SharedEncryptResponseTest.php -------------------------------------------------------------------------------- /tests/Middleware/SharedVerifyRequestTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/Middleware/SharedVerifyRequestTest.php -------------------------------------------------------------------------------- /tests/Middleware/SignResponseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/Middleware/SignResponseTest.php -------------------------------------------------------------------------------- /tests/Middleware/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/Middleware/TestCase.php -------------------------------------------------------------------------------- /tests/Middleware/UnsealRequestTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/Middleware/UnsealRequestTest.php -------------------------------------------------------------------------------- /tests/Middleware/VerifyRequestTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/Middleware/VerifyRequestTest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcordingley/LaravelSapient/HEAD/tests/TestCase.php --------------------------------------------------------------------------------