├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ └── build.yml ├── .gitignore ├── .sonarlint └── connectedMode.json ├── .vscode └── settings.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── COGNITOCONFIG.md ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── README_MFA.md ├── SECURITY.md ├── assets └── images │ ├── aws_cognito_flow1.png │ ├── aws_cognito_flow2.png │ ├── aws_cognito_flow3.png │ ├── aws_cognito_flow4.png │ ├── aws_cognito_flow5.png │ ├── aws_cognito_flow6.png │ ├── banner.png │ └── web_application_activate.png ├── composer.json ├── config └── cognito.php ├── database └── migrations │ └── 2023_09_15_000001_create_user_columns.php ├── sonar-project.properties └── src ├── Auth ├── AuthenticatesUsers.php ├── ChangePasswords.php ├── RefreshToken.php ├── RegisterMFA.php ├── RegistersUsers.php ├── ResetsPasswords.php ├── RespondsMFAChallenge.php ├── SendsPasswordResetEmails.php └── VerifiesEmails.php ├── AwsCognito.php ├── AwsCognitoClaim.php ├── AwsCognitoClient.php ├── AwsCognitoManager.php ├── AwsCognitoToken.php ├── AwsCognitoUserPool.php ├── Contracts └── Storage │ └── StorageContract.php ├── Exceptions ├── AwsCognitoException.php ├── DBConnectionException.php ├── InvalidTokenException.php ├── InvalidUserException.php ├── InvalidUserFieldException.php ├── InvalidUserModelException.php ├── NoLocalUserException.php ├── NoTokenException.php └── TokenBlacklistedException.php ├── Guards ├── CognitoSessionGuard.php ├── CognitoTokenGuard.php └── Traits │ ├── BaseCognitoGuard.php │ └── CognitoMFA.php ├── Http ├── Middleware │ ├── AwsCognitoAuthenticate.php │ └── BaseMiddleware.php └── Parser │ ├── AuthHeaders.php │ ├── ClaimSession.php │ └── Parser.php ├── Providers ├── AwsCognitoServiceProvider.php └── StorageProvider.php ├── Services └── AwsCognitoJwksService.php ├── Traits ├── AwsCognitoClientAdminAction.php └── AwsCognitoClientMFAAction.php └── Validators └── AwsCognitoTokenValidator.php /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | /vendor/ 3 | -------------------------------------------------------------------------------- /.sonarlint/connectedMode.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/.sonarlint/connectedMode.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /COGNITOCONFIG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/COGNITOCONFIG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/README.md -------------------------------------------------------------------------------- /README_MFA.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/README_MFA.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/SECURITY.md -------------------------------------------------------------------------------- /assets/images/aws_cognito_flow1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/assets/images/aws_cognito_flow1.png -------------------------------------------------------------------------------- /assets/images/aws_cognito_flow2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/assets/images/aws_cognito_flow2.png -------------------------------------------------------------------------------- /assets/images/aws_cognito_flow3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/assets/images/aws_cognito_flow3.png -------------------------------------------------------------------------------- /assets/images/aws_cognito_flow4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/assets/images/aws_cognito_flow4.png -------------------------------------------------------------------------------- /assets/images/aws_cognito_flow5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/assets/images/aws_cognito_flow5.png -------------------------------------------------------------------------------- /assets/images/aws_cognito_flow6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/assets/images/aws_cognito_flow6.png -------------------------------------------------------------------------------- /assets/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/assets/images/banner.png -------------------------------------------------------------------------------- /assets/images/web_application_activate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/assets/images/web_application_activate.png -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/composer.json -------------------------------------------------------------------------------- /config/cognito.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/config/cognito.php -------------------------------------------------------------------------------- /database/migrations/2023_09_15_000001_create_user_columns.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/database/migrations/2023_09_15_000001_create_user_columns.php -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/sonar-project.properties -------------------------------------------------------------------------------- /src/Auth/AuthenticatesUsers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Auth/AuthenticatesUsers.php -------------------------------------------------------------------------------- /src/Auth/ChangePasswords.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Auth/ChangePasswords.php -------------------------------------------------------------------------------- /src/Auth/RefreshToken.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Auth/RefreshToken.php -------------------------------------------------------------------------------- /src/Auth/RegisterMFA.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Auth/RegisterMFA.php -------------------------------------------------------------------------------- /src/Auth/RegistersUsers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Auth/RegistersUsers.php -------------------------------------------------------------------------------- /src/Auth/ResetsPasswords.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Auth/ResetsPasswords.php -------------------------------------------------------------------------------- /src/Auth/RespondsMFAChallenge.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Auth/RespondsMFAChallenge.php -------------------------------------------------------------------------------- /src/Auth/SendsPasswordResetEmails.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Auth/SendsPasswordResetEmails.php -------------------------------------------------------------------------------- /src/Auth/VerifiesEmails.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Auth/VerifiesEmails.php -------------------------------------------------------------------------------- /src/AwsCognito.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/AwsCognito.php -------------------------------------------------------------------------------- /src/AwsCognitoClaim.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/AwsCognitoClaim.php -------------------------------------------------------------------------------- /src/AwsCognitoClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/AwsCognitoClient.php -------------------------------------------------------------------------------- /src/AwsCognitoManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/AwsCognitoManager.php -------------------------------------------------------------------------------- /src/AwsCognitoToken.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/AwsCognitoToken.php -------------------------------------------------------------------------------- /src/AwsCognitoUserPool.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/AwsCognitoUserPool.php -------------------------------------------------------------------------------- /src/Contracts/Storage/StorageContract.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Contracts/Storage/StorageContract.php -------------------------------------------------------------------------------- /src/Exceptions/AwsCognitoException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Exceptions/AwsCognitoException.php -------------------------------------------------------------------------------- /src/Exceptions/DBConnectionException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Exceptions/DBConnectionException.php -------------------------------------------------------------------------------- /src/Exceptions/InvalidTokenException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Exceptions/InvalidTokenException.php -------------------------------------------------------------------------------- /src/Exceptions/InvalidUserException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Exceptions/InvalidUserException.php -------------------------------------------------------------------------------- /src/Exceptions/InvalidUserFieldException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Exceptions/InvalidUserFieldException.php -------------------------------------------------------------------------------- /src/Exceptions/InvalidUserModelException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Exceptions/InvalidUserModelException.php -------------------------------------------------------------------------------- /src/Exceptions/NoLocalUserException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Exceptions/NoLocalUserException.php -------------------------------------------------------------------------------- /src/Exceptions/NoTokenException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Exceptions/NoTokenException.php -------------------------------------------------------------------------------- /src/Exceptions/TokenBlacklistedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Exceptions/TokenBlacklistedException.php -------------------------------------------------------------------------------- /src/Guards/CognitoSessionGuard.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Guards/CognitoSessionGuard.php -------------------------------------------------------------------------------- /src/Guards/CognitoTokenGuard.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Guards/CognitoTokenGuard.php -------------------------------------------------------------------------------- /src/Guards/Traits/BaseCognitoGuard.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Guards/Traits/BaseCognitoGuard.php -------------------------------------------------------------------------------- /src/Guards/Traits/CognitoMFA.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Guards/Traits/CognitoMFA.php -------------------------------------------------------------------------------- /src/Http/Middleware/AwsCognitoAuthenticate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Http/Middleware/AwsCognitoAuthenticate.php -------------------------------------------------------------------------------- /src/Http/Middleware/BaseMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Http/Middleware/BaseMiddleware.php -------------------------------------------------------------------------------- /src/Http/Parser/AuthHeaders.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Http/Parser/AuthHeaders.php -------------------------------------------------------------------------------- /src/Http/Parser/ClaimSession.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Http/Parser/ClaimSession.php -------------------------------------------------------------------------------- /src/Http/Parser/Parser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Http/Parser/Parser.php -------------------------------------------------------------------------------- /src/Providers/AwsCognitoServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Providers/AwsCognitoServiceProvider.php -------------------------------------------------------------------------------- /src/Providers/StorageProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Providers/StorageProvider.php -------------------------------------------------------------------------------- /src/Services/AwsCognitoJwksService.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Services/AwsCognitoJwksService.php -------------------------------------------------------------------------------- /src/Traits/AwsCognitoClientAdminAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Traits/AwsCognitoClientAdminAction.php -------------------------------------------------------------------------------- /src/Traits/AwsCognitoClientMFAAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Traits/AwsCognitoClientMFAAction.php -------------------------------------------------------------------------------- /src/Validators/AwsCognitoTokenValidator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ellaisys/aws-cognito/HEAD/src/Validators/AwsCognitoTokenValidator.php --------------------------------------------------------------------------------