zeroweb/azuresso
最新稳定版本:2.2
Composer 安装命令:
composer require zeroweb/azuresso
包简介
Azure SSO Integration Package
关键字:
README 文档
README
Quickly integrate Azure Single Sign On
Installation
Install the latest version with
$ composer require zeroweb/azuresso
Basic Usage
<?php use Symfony\Component\HttpFoundation\Request; use ZeroWeb\AzureSSO; $request = Request::createFromGlobals(); ## $azureCreds = array of the credenetials $config = [ 'clientId' => 'client id', 'clientSecret' => 'client secret', 'tenantId' => 'tenant id', 'scope' => 'User.Read GroupMember.Read.All', 'returnUrl' => 'https://localhost/sso', 'returnGroups' => true, // set false to not return the user groups. If set to true, requires GroupMemeber.Read.All scope ]; $sso = new AzureSSO($config, $request); try { $sso->authenticate(); // The user is authenticated at this point and the session contains the auth data. } catch (Exception $e) { echo ("There was a problem with authentication." . $e->getMessage()); }
统计信息
- 总下载量: 346
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-06-01