承接 zeroweb/azuresso 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2023-06-01