hypervel / socialite
OAuth 2.0 and OpenID Connect authentication for Hypervel.
v0.3.28
2025-09-01 07:52 UTC
Requires
- php: ^8.2
- ext-json: *
- firebase/php-jwt: ^6.4
- guzzlehttp/guzzle: ^6.0|^7.0
- hypervel/http: ^0.3
- hypervel/support: ^0.3
- league/oauth1-client: ^1.11
- phpseclib/phpseclib: ^3.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- 0.4.x-dev
- 0.3.x-dev
- dev-main / 0.3.x-dev
- v0.3.28
- v0.3.27
- v0.3.26
- v0.3.25
- v0.3.24
- v0.3.23
- v0.3.22
- v0.3.21
- v0.3.20
- v0.3.19
- v0.3.18
- v0.3.17
- v0.3.16
- v0.3.15
- v0.3.14
- v0.3.13
- v0.3.12
- v0.3.11
- v0.3.10
- v0.3.9
- v0.3.8
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- 0.2.x-dev
- v0.2.12
- v0.2.11
- v0.2.10
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
This package is auto-updated.
Last update: 2026-11-02 17:11:02 UTC
README
Documentation: https://hypervel.org/docs/socialite
Differences From Laravel
- OAuth 1.0 and the legacy
twitterdrivers are not supported. Use the OAuth 2.0xdriver, configured underservices.x; Laravel'sservices.x-oauth-2fallback is not read. - The facade is
Hypervel\Socialite\Socialite. Laravel'sFacades\Socialitealias class is not included. - Provider instances are cached for the worker lifetime, so each request's provider state lives in coroutine context: the request,
with()parameters, scopes, PKCE and stateless flags, the redirect URL, andsetConfig()overrides. Custom providers read this state through getters such asgetRequest(),getParameters(),getScopes(),getClientId(),getClientSecret(),getRedirectUrl(), andgetConfig()instead of Laravel's properties, and there are no$request,$httpClient, or$userproperties. See dynamic provider configuration. - Custom OAuth 2.0 providers are built with
buildOAuth2Provider()instead ofbuildProvider(). They may also use token-response parsers and the generic OpenID Connect base provider. See custom providers. The OAuth 1-onlyformatConfig()method is not included. - OpenID Connect providers may trust additional audiences through
trusted_audienceswhile still requiring the configured client ID. - Invalid ID-token issuers, audiences, and nonces throw
InvalidIssuerException,InvalidAudienceException, andInvalidNonceExceptionfromHypervel\Socialite\Two\Exceptionsinstead of Laravel's generic exceptions. - Google users' raw data does not include Laravel's deprecated
id,verified_email, andlinkaliases. Readsub,email_verified, andprofileinstead. stateless()disables OAuth state validation, but thexdriver's PKCE flow and generic OpenID Connect nonce validation still require session continuity.
Ported from: https://github.com/laravel/socialite