Skip to content
This repository was archived by the owner on Aug 17, 2026. It is now read-only.
 
 

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual Studio Team Services (VSTS) and Team Foundation Server (TFS) Provider for OAuth 2.0 Client

Latest Version Total Downloads Software License

⚠️ This project has been archived and is no longer maintained. Head over to thenetworg/oauth2-azure for a suitable replacement.

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.

About

VSTS Provider for OAuth 2.0 Client

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages