承接 victorap93/azuread 相关项目开发

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

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

victorap93/azuread

Composer 安装命令:

composer require victorap93/azuread

包简介

Azure AD is an easy way to use Azure AD 2.0 Protocols to get authorization token

README 文档

README

Software License Latest Version Total Downloads

Azure AD is an easy way to use Azure AD 2.0 Protocols to get authorization token

Installation

The recommended way to install this is through Composer.

composer require victorap93/azuread

How to use

Get the nedded parameters:

Read this step to know how to get neded params.

Get Token by using Microsoft client secret:

require_once "./vendor/autoload.php";

use \victorap93\AzureAD;

$tenantId = "";
$clientId = "";
$scope = "https://graph.microsoft.com/.default";
$clientSecret = "";

$AzureAD = new AzureAD;
$azure_token = $AzureAD->getMSTokenBySecret($tenantId, $clientId, $scope, $clientSecret);
echo $azure_token->access_token;

Get Token by using Miscrosoft username and password:

require_once "./vendor/autoload.php";

use \victorap93\AzureAD;

$tenantId = "";
$clientId = "";
$scope = "https://graph.microsoft.com/.default";
$username = "";
$password = "";

$AzureAD = new AzureAD;
$azure_token = $AzureAD->getMSTokenByCredentials($tenantId, $clientId, $scope, $username, $password);
echo $azure_token->access_token;

Help and docs

License

Azure AD is made available under the MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固