PHPackages                             jennifer/steein-oauth2-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. jennifer/steein-oauth2-laravel

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

jennifer/steein-oauth2-laravel
==============================

Steein OAuth2 Provider for Laravel Socialite

1.0(8y ago)081MITPHPPHP ^5.6 || ^7.0

Since Jul 24Pushed 8y agoCompare

[ Source](https://github.com/jennifer-code/steein-oauth2-laravel)[ Packagist](https://packagist.org/packages/jennifer/steein-oauth2-laravel)[ RSS](/packages/jennifer-steein-oauth2-laravel/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Steein OAuth2 Provider for Laravel Socialite
============================================

[](#steein-oauth2-provider-for-laravel-socialite)

Installation
------------

[](#installation)

### 0. Credentials

[](#0-credentials)

Obtain your app ID and secret from [www.steein.ru](https://www.steein.ru/developers/docs). You must set up a valid name and callback URL.

### 1. Composer

[](#1-composer)

This assumes that you have composer installed globally:

```
composer require jennifer/steein-oauth2-laravel

```

2. Service Provider
-------------------

[](#2-service-provider)

Remove `Laravel\Socialite\SocialiteServiceProvider` from your `providers[]` array in ***config\\app.php*** if you have added it already. Add `\SocialiteProviders\Manager\ServiceProvider::class` to your `providers[]` array in ***config\\app.php***. For example:

```
'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    \SocialiteProviders\Manager\ServiceProvider::class, // add
];
```

3. Add the Event and Listeners
------------------------------

[](#3-add-the-event-and-listeners)

Add `SocialiteProviders\Manager\SocialiteWasCalled` event to your `listen[]` array in `/Providers/EventServiceProvider`. Add your listeners (i.e. the ones from the providers) to the `SocialiteProviders\Manager\SocialiteWasCalled[]` that you just created. The listener that you add for this provider is `'SocialiteProviders\Steein\SteeinExtendSocialite@handle'`,.

***Note:*** You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

For example:

```
/**
 * The event handler mappings for the application.
 *
 * @var array
 */
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // add your listeners (aka providers) here
        'SocialiteProviders\Steein\SteeinExtendSocialite@handle',
    ],
];
```

4. Environment Variables
------------------------

[](#4-environment-variables)

If you add environment values to your `.env` as exactly shown below, ***you do not need to add an entry to the services array.***

### Append provider values to your `.env` file

[](#append-provider-values-to-your-env-file)

```
// other values above
STEEIN_KEY=yourkeyfortheservice
STEEIN_SECRET=yoursecretfortheservice
STEEIN_REDIRECT_URI=https://example.com/login/callback

```

### Add to `config/services.php`.

[](#add-to-configservicesphp)

You do not need to add this if you add the values to the .env exactly as shown above. The values below are provided as a convenience in the case that a developer is not able to use the .env method

```
'steein' => [
    'client_id' => env('STEEIN_KEY'),
    'client_secret' => env('STEEIN_SECRET'),
    'redirect' => env('STEEIN_REDIRECT_URI'),
]

```

Usage
-----

[](#usage)

You should now be able to use it like you would regularly use Socialite (assuming you have the facade installed):

```
    return Socialite::with('steein')->redirect();
```

### Lumen Support

[](#lumen-support)

You can use Socialite providers with Lumen. Just make sure that you have facade support turned on and that you follow the setup directions properly.

***Note:*** If you are using this with Lumen, all providers will automatically be stateless since Lumen does not keep track of state.

Also, configs cannot be parsed from the `services[]` in Lumen. You can only set the values in the `.env` file as shown exactly in this document. If needed, you can also override a config (shown below).

Stateless

You can set whether or not you want to use the provider as stateless. Remember that the OAuth provider (Twitter, Tumblr, etc) must support whatever option you choose.

***Note:*** If you are using this with Lumen, all providers will automatically be stateless since Lumen does not keep track of state.

```
// to turn off stateless
return Socialite::with('steein')->stateless(false)->redirect();

// to use stateless
return Socialite::with('steein')->stateless()->redirect();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3216d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/683a1ebb2074969f83d5622d823616dcf4d7c1505a92ba938e416a03509f1212?d=identicon)[jenniferhub](/maintainers/jenniferhub)

---

Top Contributors

[![jenniferhub](https://avatars.githubusercontent.com/u/30402827?v=4)](https://github.com/jenniferhub "jenniferhub (5 commits)")

---

Tags

composerexactlylaravellistenerlumenoauthoauth2phpsocialsocial-authenticationsocialite-providerssteeinauthsocialiteauthorizationloginsteein

### Embed Badge

![Health badge](/badges/jennifer-steein-oauth2-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/jennifer-steein-oauth2-laravel/health.svg)](https://phpackages.com/packages/jennifer-steein-oauth2-laravel)
```

###  Alternatives

[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)[auth0/wordpress

WordPress Plugin for Auth0

17419.5k](/packages/auth0-wordpress)[mad-web/laravel-social-auth

Easy social auth integration with a lot of available providers

516.7k](/packages/mad-web-laravel-social-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
