Download the PHP package gusmanwidodo/auth-kit-social without Composer

On this page you can find all versions of the php package gusmanwidodo/auth-kit-social. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package auth-kit-social

Auth-Kit Social

Social / OAuth login plugin for Auth-Kit, built as a thin wrapper over Laravel Socialite. It stores linked social identities (multi-provider per user, tokens encrypted at rest), adds redirect/callback/link/unlink endpoints, and runs login hooks — while delegating the entire OAuth handshake to Socialite.

Tests

Socialite compatibility

Socialite does the OAuth handshake and returns a normalized user; it does not persist anything or link identities to your users. This plugin fills exactly that gap without reimplementing OAuth, so it stays compatible with every Socialite driver — including the community adapters from socialiteproviders.com.

See ADR 005 for the design rationale.

Requirements

Installation

Configure your OAuth apps in config/services.php as you normally would for Socialite, then enable the providers in config/auth-kit-social.php:

Endpoints

Method URI Purpose
GET /auth-kit/social/{provider}/redirect Redirect to the OAuth provider (via Socialite)
GET /auth-kit/social/{provider}/callback Handle the callback: link/store identity, run hooks
POST /auth-kit/social/{provider}/link Link a provider to an existing subject
POST /auth-kit/social/{provider}/unlink Unlink a provider from a subject

Providers not listed in config return 404 so a URL typo can't reach an unconfigured driver.

How login works

The plugin owns linking, not user creation — matching Socialite's own guidance (your app decides how a user is provisioned). On a new login, the before:social.login hook must resolve the subject (find-or-create your user):

On a returning login (an identity already exists for (provider, provider_id)), the subject is resolved automatically and the stored profile + tokens are refreshed — no hook needed.

Programmatic API

Multi-provider & encrypted tokens

Hooks

Event When Payload
before:social.login New identity, before creation provider, provider_id, email, name, nickname → set subject_type/subject_id or veto with allow=false
after:social.login After link/login provider, identity_id, subject_type, subject_id, new

Developing against a local core

Note: running composer require :@dev rewrites this composer.json to @dev. Revert the gusmanwidodo/auth-kit constraint to ^0.1 (and remove any repositories block) before committing/tagging a release.

License

MIT © Gusman Widodo. See LICENSE.


All versions of auth-kit-social with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
gusmanwidodo/auth-kit Version ^0.1
illuminate/contracts Version ^12.0
illuminate/database Version ^12.0
illuminate/support Version ^12.0
laravel/socialite Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gusmanwidodo/auth-kit-social contains the following files

Loading the files please wait ...