Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Socialite Cognito

Laravel Socialite Cognito Laravel Package

kirschbaum-development/laravel-socialite-cognito

Amazon Cognito OAuth provider for Laravel Socialite. Let users sign in through Cognito's hosted UI and retrieve their profile with a simple Socialite driver, making Cognito authentication easy to add to any Laravel app. Supports standard Socialite flows with minimal configuration.

View on GitHub
Deep Wiki
Context7

A custom AWS Cognito driver for Laravel Socialite

Frequently asked questions about Laravel Socialite Cognito
What is kirschbaum-development/laravel-socialite-cognito?
It is a Composer package that adds an AWS Cognito OAuth driver to Laravel Socialite. It lets your Laravel app send users through Cognito's hosted UI and then retrieve their Cognito profile through Socialite's familiar user flow. It is an authentication integration layer, not a full user management or authorization system.
How do I install this Cognito driver in Laravel?
Install it with Composer using composer require kirschbaum-development/laravel-socialite-cognito. Then follow the repository README to register the Socialite driver and publish or add the required configuration. Because this is a 0.0.1 release, pin the exact version and confirm the install steps against the tagged source.
Which Laravel and PHP versions are supported?
The package overview does not list supported Laravel or PHP versions, so check composer.json for the illuminate/socialite and PHP constraints before installing. Do not assume compatibility with your Laravel major. Pin the exact version and run your test suite in a sandbox first.
How do I configure AWS Cognito credentials for this package?
You generally configure Cognito in Laravel's services configuration with values such as the client ID, client secret, redirect URI, and Cognito domain or region, then reference it as a Socialite driver. The exact key names and whether the package publishes its own config file should be confirmed in the README. Keep secrets in environment variables rather than committed config.
How does the Cognito hosted UI flow work with Laravel Socialite?
The driver follows the standard Socialite OAuth flow: your app redirects the user to Cognito's hosted UI, Cognito redirects back to your callback, and Socialite exchanges the authorization code for tokens. The driver then loads the Cognito profile so your app can log the user in. Confirm the exact redirect and scopes in the package docs.
Can I retrieve Cognito user attributes like email and name?
The driver is designed to return a Socialite user object populated from Cognito, so standard fields such as email and name are the main ones to inspect. Cognito can expose many custom attributes, but you should verify which ones the driver maps and which remain in the raw response. Do not assume every Cognito attribute is available on the Socialite user object without checking.
Is this package production-ready at version 0.0.1?
Treat version 0.0.1 as pre-stable: the maintainer may make breaking changes in patch releases. It can be reasonable for a spike or internal tool, but production adoption should wait for a reviewed, pinned release with reproducible installs and tests. Isolate calls behind one adapter so you can replace the package if needed.
Does this package ship tests and run CI across Laravel versions?
The provided overview does not state whether the package ships tests or runs CI across Laravel versions. Check the repository for a test suite, GitHub Actions or other CI config, and recent workflow results. If tests are absent, budget time for your own integration tests against a Cognito test user pool.
How do I test Cognito authentication in my Laravel test suite?
For application tests, mock the Socialite driver rather than calling Cognito on every run, for example by expecting the cognito driver and returning a fake user. Keep a smaller number of integration tests that exercise a real Cognito test user pool or a stubbed OAuth flow. This keeps the suite fast while still validating your callback and user provisioning logic.
What are alternatives to this package for Cognito authentication in Laravel?
Laravel Socialite does not include Cognito as a built-in provider, so alternatives include writing a custom Socialite provider with Socialite::extend, using the AWS SDK directly, or evaluating another community Cognito package. This package is attractive if you want Socialite's standard redirect and callback flow with minimal code. Compare maintenance status, supported Laravel versions, and test coverage before choosing.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections