定制 testmonitor/oauth2-vsts 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

testmonitor/oauth2-vsts

最新稳定版本:3.0.0

Composer 安装命令:

composer require testmonitor/oauth2-vsts

包简介

Visual Studio Team Services (VSTS) and Team Foundation Server (TFS) OAuth 2.0 Client Provider for The PHP League OAuth2-Client

README 文档

README

Latest Version Total Downloads Software License

This package provides Visual Studio Team Services (VSTS) and Team Foundation Server (TFS) OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Table of Contents

Installation

To install the client you need to require the package using composer:

$ composer require testmonitor/oauth2-vsts

Use composer's autoload:

require __DIR__.'/../vendor/autoload.php';

You're all set up now!

Usage

Usage is the same as The League's OAuth client, using \Jeylabs\OAuth2\Client\Provider\VSTS as the provider.

Examples

$provider = new VSTSProvider([
    'clientId' => $clientId,
    'clientSecret' => $clientSecret,
    'redirectUri' => $redirectUri,
    'urlAuthorize' => 'https://app.vssps.visualstudio.com/oauth2/authorize',
    'urlAccessToken' => 'https://app.vssps.visualstudio.com/oauth2/token',
    'urlResourceOwnerDetails' => 'https://app.vssps.visualstudio.com/oauth2/token/resource',
    'responseType' => 'Assertion',
    'scopes' => 'vso.project vso.work_full',
]);

$token = $provider->getAccessToken('jwt_bearer', [
    'assertion' => $code,
]);

Changelog

Refer to CHANGELOG for more information.

Contributing

Refer to CONTRIBUTING for contributing details.

Credits

This package is based on JeyLabs OAuth 2 VSTS.

License

The MIT License (MIT). Refer to the License for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固