macfly/yii2-authclient-adfs

This package is abandoned and no longer maintained. No replacement package was suggested.

Adfs Oauth2 client for yii2-authclient

0.0.2 2017-03-01 14:28 UTC

This package is auto-updated.

Last update: 2023-04-13 03:41:12 UTC


README

Adfs client for yii2-authclient

Installation

Through Composer From console:

composer require macfly/yii2-authclient-adfs

or add to "require" section to composer.json

"macfly/yii2-authclient-adfs": "*"

Usage

Set up Oauth2 single sign-on on Active Directory with ADFS. And add the AdfsOauth2 client to your auth clients.

php
'components' => [
    'authClientCollection' => [
      'class'   => \yii\authclient\Collection::className(),
      'clients' => [
        'adfs' => [
          'class'             => 'macfly\authclient\AdfsOAuth2',
          'authUrl'           => 'https://adfs.microsoft.com/adfs/oauth2/authorize',
          'tokenUrl'          => 'https://adfs.microsoft.com/adfs/oauth2/token',
          'clientId'          => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
          'clientSecret'      => 'yyyyyyyyy',
          'userAttributes'    => [
            'email',
          ],
        ],
        // other clients
      ],
    ],
    // ...
 ]