chunlaw/yii2-azure-authclient
最新稳定版本:2.2.1
Composer 安装命令:
composer require chunlaw/yii2-azure-authclient
包简介
External authentication via OAuth and OpenID for the Yii framework, support Azure account
README 文档
README
Azure AuthClient Extension for Yii 2
This extension adds Azure OAuth2 client for the extensions Yii 2 AuthClient. This extension is able to handle both work/organization and personal accounts resided in Azure, while solely Yii 2 AuthClient is only able to handle personal accounts.
For license information check the LICENSE-file.
Documentation is at docs/guide/README.md.
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist chunlaw/yii2-azure-authclient
or add
"chunlaw/yii2-azure-authclient": "~2.2.0"
to the require section of your composer.json.
Configuring application
After extension is installed, you need to setup auth client collection application component:
return [
'components' => [
'authClientCollection' => [
'class' => 'yii\authclient\Collection',
'clients' => array_filter([
'azure' => [
'class' => 'chunlaw\authclient\Azure',
'returnUrl' => '<azure_return_url>',
'clientId' => '<azure_client_id>',
'clientSecret' => '<azure_client_secret>'
],
'google' => [
'class' => 'yii\authclient\clients\Google',
'returnUrl' => '<google_return_url>',
'clientId' => '<google_client_id>',
'clientSecret' => '<google_client_secret>',
],
// etc.
]),
],
],
// ...
];
Other usage remains the same as AuthClient Extension for Yii 2.
统计信息
- 总下载量: 10.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2021-03-25