PHPackages                             arietimmerman/laravel-authchain - 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. arietimmerman/laravel-authchain

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

arietimmerman/laravel-authchain
===============================

Laravel Package for creating a authentication chain

v0.5.3(4y ago)01401MITPHPPHP &gt;7

Since Jan 1Pushed 4y ago1 watchersCompare

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

READMEChangelogDependencies (15)Versions (6)Used By (0)

Laravel Authentication Chain
============================

[](#laravel-authentication-chain)

This is a general purpose authentication chain that can be use for all authentication methods and federation protocols.

This module is used by [Idaas.nl](https://www.idaas.nl/).

**This module is work in progress**

Installation
============

[](#installation)

Ensure you exclude authchain requests from CSRF verification.

```
class VerifyCsrfToken extends Middleware
{
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        '/saml/v2/*',
        '/authchain/*'
    ];
}

```

Enable the routes in your `routes/web.php` file.

```
\ArieTimmerman\Laravel\AuthChain\Providers\RouteProvider::routes();
```

The full user details can be retrieved using

```
ArieTimmerman\Laravel\AuthChain\Object\Eloquent\Subject::find(id);
```

Extend Subject.

```
