macfly / yii2-authclient-adfs
Adfs Oauth2 client for yii2-authclient
Installs: 1 344
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- emarref/jwt: >=1.0
- yiisoft/yii2-authclient: >=2.0.4
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
],
],
// ...
]