PHPackages                             ingeneo/yii2-saml - 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. ingeneo/yii2-saml

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

ingeneo/yii2-saml
=================

Connect Yii 2 application to a Saml Identity Provider for Single Sign On

2.0.2(6y ago)012MITPHP

Since Jan 3Pushed 6y agoCompare

[ Source](https://github.com/MaryeinyLosadaRomero/yii2-saml)[ Packagist](https://packagist.org/packages/ingeneo/yii2-saml)[ RSS](/packages/ingeneo-yii2-saml/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (3)Versions (18)Used By (0)

Yii 2 Saml
==========

[](#yii-2-saml)

[![Build Status](https://camo.githubusercontent.com/581cdbf0cc164a3dd7e6a1d2395c5550be18d56d95dd591fc6829e1315535f78/68747470733a2f2f7472617669732d63692e6f72672f617361736d6f796f2f796969322d73616d6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/asasmoyo/yii2-saml)

Connect Yii 2 application to a Saml Identity Provider for Single Sign On

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist asasmoyo/yii2-saml "*"

```

or add

```
"asasmoyo/yii2-saml": "*"

```

to the require section of your `composer.json` file.

Configuration
-------------

[](#configuration)

Register `ingeneo\yii2saml\Saml` to your components in `config/web.php`.

```
'components' => [
    'saml' => [
        'class' => 'ingeneo\yii2saml\Saml',
        'configFileName' => '@app/config/saml.php', // OneLogin_Saml config file (Optional)
    ]
]
```

This component requires a `OneLogin_Saml` configuration stored in a php file. The default value for `configFileName` is `@app/config/saml.php` so make sure to create this file before. This file must returns the `OneLogin_Saml` configuration. See this [link](https://github.com/onelogin/php-saml/blob/master/settings_example.php) for example configuration.

```
