Download the PHP package kodhe/socialite without Composer
On this page you can find all versions of the php package kodhe/socialite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kodhe/socialite
More information about kodhe/socialite
Files in kodhe/socialite
Package socialite
Short Description Native OAuth social login component (Google, GitHub, Facebook, GitLab, LinkedIn, Twitter) for the Kodhe framework. Self-contained: no laravel/socialite dependency.
License MIT
Informations about the package socialite
Kodhe Socialite — Native OAuth Social Login (without laravel/socialite)
A social login component for the Kodhe framework that implements the OAuth 1.0a and OAuth 2.0 protocols on its own and connects directly to each provider's API (Google, GitHub, Facebook, GitLab, LinkedIn, Twitter).
No third-party dependencies: not
laravel/socialite, not Guzzle, not league/oauth2-client. Only PHP >= 8.1 is required (+ext-curlrecommended; automatically falls back to PHP streams).
Built-in providers
| Provider | Protocol | User-info endpoint |
|---|---|---|
| OAuth 2 / OIDC | openidconnect.googleapis.com/v1/userinfo |
|
| GitHub | OAuth 2 | api.github.com/user (+ /user/emails) |
| OAuth 2 | Graph API /me (v18.0, configurable) |
|
| GitLab | OAuth 2 | /api/v4/user (supports self-hosted) |
| OAuth 2 / OIDC | api.linkedin.com/v2/userinfo |
|
| OAuth 1.0a | account/verify_credentials.json (HMAC-SHA1 signing RFC 5849) |
Other providers can be registered yourself via Manager::extend().
Usage
1. Configuration — config/socialite.php
Register the callback URL in each provider's developer console,
e.g. https://example.com/auth/socialite/callback/google.
2. Route redirect & callback
3. Additional features
4. Security
- CSRF state token: generated with
random_bytes(), stored in the session (SessionStateStore), verified withhash_equals()on callback. Disable it via'validate_state' => falseonly if necessary. - HTTPS transport with certificate verification; no secrets are ever printed in error messages.
- The HTTP client & state store are swappable via interfaces:
Contracts\HttpClientInterface,Contracts\StateStoreInterface(Manager::setHttpClient()/setStateStore()).
Structure
Running tests
All versions of socialite with dependencies
ext-json Version *