Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

marty-macfly/yii2-authclient-adfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yii2-authclient-adfs

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
      ],
    ],
    // ...
 ]

About

Adfs Oauth2 client for yii2-authclient

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages