PHPackages                             quartsoft/samlsso - 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. quartsoft/samlsso

ActiveLibrary

quartsoft/samlsso
=================

A SAML SSO extension for Yii 2

049PHP

Since Feb 27Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#yii-2-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/).

Later run

```
php composer.phar require --prefer-dist quartsoft/samlsso "dev-master"

```

or add

```
"quartsoft/samlsso": "dev-master"

```

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

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

[](#configuration)

Register `quartsoft\samlsso\Saml` to your components in `config/web.php`.

```
'components' => [
    'samlsso' => [
        'class' => 'quartsoft\samlsso\Samlsso',
        'configFile' => '@common/config/samlcofig.php' // OneLogin_Saml config file (Optional)
    ]
]
```

This component requires a `OneLogin_Saml` configuration stored in a php file. The default value for `configFile` is `@common/config/samlcofig.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.

```
