PHPackages                             codeedu/laravel-sso - 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. codeedu/laravel-sso

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

codeedu/laravel-sso
===================

163964[2 issues](https://github.com/codeedu/laravel-sso/issues)PHP

Since Nov 21Pushed 6y ago2 watchersCompare

[ Source](https://github.com/codeedu/laravel-sso)[ Packagist](https://packagist.org/packages/codeedu/laravel-sso)[ RSS](/packages/codeedu-laravel-sso/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

About
-----

[](#about)

This library provides integration between Laravel Framework and SSO (Single Sign-On) [https://en.wikipedia.org/wiki/Single\_sign-on](https://en.wikipedia.org/wiki/Single_sign-on).

Get started
-----------

[](#get-started)

### Instalation

[](#instalation)

Execute in shell:

```
composer require codeedu/laravel-sso:0.0.1
```

Publish the sso configuration file:

```
php artisan vendor:publish --provider="CodeEdu\LaravelSso\SSOServiceProvider"
```

#### Broker Configuration

[](#broker-configuration)

Set environment variables:

```
SSO_SERVER=http://server.address
SSO_BROKER_ID=BROKER ID
SSO_BROKER_SECRET=BROKER SECRET

```

Register middleware **CodeEdu\\LaravelSso\\Middleware\\AttachBroker** in **routes** key in **Kernel.php**.

Register **sso** in **config/auth.php**:

```
'sso' => [
    'driver' => 'sso',
    'model' => \App\User::class
]
```

#### Server Configuration

[](#server-configuration)

Set environment variable:

```
SSO_TYPE=server

```

Create App\\Sso\\Server.php:

```
