PHPackages                             olsgreen/oauth2-adobe-sign - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. olsgreen/oauth2-adobe-sign

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

olsgreen/oauth2-adobe-sign
==========================

Adobe Sign OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1.0.1(4y ago)36.1k—0%2MITPHPPHP ^7.3 || ^8.0

Since Jan 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/olsgreen/oauth2-adobe-sign)[ Packagist](https://packagist.org/packages/olsgreen/oauth2-adobe-sign)[ RSS](/packages/olsgreen-oauth2-adobe-sign/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Adobe Sign Provider for OAuth 2.0 Client
========================================

[](#adobe-sign-provider-for-oauth-20-client)

[![Latest Version](https://camo.githubusercontent.com/c891e676c2c86f5d85f83e1b5bca67ca410628489599cd1149247aee7220c59a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f6c73677265656e2f6f61757468322d61646f62652d7369676e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/olsgreen/oauth2-adobe-sign/releases)[![Tests](https://github.com/olsgreen/oauth2-adobe-sign/workflows/Tests/badge.svg)](https://github.com/olsgreen/oauth2-adobe-sign/actions/runs)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package provides Adobe Sign OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

Looking for an AdobeSign API client? See [olsgreen/adobe-sign-api](https://github.com/olsgreen/adobe-sign-api).

This package requires PHP &gt;= 7.3.

Installation
------------

[](#installation)

To install, use composer:

```
composer require olsgreen/oauth2-adobe-sign

```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\Olsgreen\OAuth2\Client\Provider\AdobeSign` as the provider.

### Authorization Code Flow

[](#authorization-code-flow)

```
$provider = new Olsgreen\OAuth2\Client\Provider\AdobeSign([
    'clientId'          => '{adobe-client-id}',
    'clientSecret'      => '{adobe-client-secret}',
    'redirectUri'       => 'https://example.com/callback-url',
    'dataCenter'        => 'eu2'
]);

if (!isset($_GET['code'])) {

    $authorizationOptions = [
        // See documentation relating to scopes:
        // https://opensource.adobe.com/acrobat-sign/developer_guide/helloworld.html#configure-scopes
        'scope' => [
            'agreement_read',
            'agreement_write',
            'agreement_send',
            'webhook_read',
            'webhook_write',
            'webhook_retention'
        ]
    ];

    // If we don't have an authorization code then get one
    $authUrl = $provider->getAuthorizationUrl($authorizationOptions);
    $_SESSION['oauth2state'] = $provider->getState();
    header('Location: '.$authUrl);
    exit;

// Check given state against previously stored one to mitigate CSRF attack
} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {

    unset($_SESSION['oauth2state']);
    exit('Invalid state');

} else {

    // Try to get an access token (using the authorization code grant)
    $token = $provider->getAccessToken('authorization_code', [
        'code' => $_GET['code']
    ]);

    // Use this to interact with an API on the users behalf
    echo $token->getToken();
}
```

### Data Centers

[](#data-centers)

The data center should match that of the account you are trying to access, so best store the datacenter with the access token. The current datacenters are:

- na1 = North America 1
- na2 = North America 2
- eu1 = EU 1
- eu2 = EU 2
- au1 = Australia 1
- jp1 = Japan 1

Provider Quirks
---------------

[](#provider-quirks)

Adobe do not provide an endpoint to retrieve the current user, so `getResourceOwnerDetailsUrl()`, `createResourceOwner()` &amp; `getResourceOwner()` will throw `NotImplmenetedException`.

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

Credits
-------

[](#credits)

Originally forked from [kevinm/oauth2-adobe-sign](https://github.com/kevinem/oauth2-adobe-sign).

- [Oliver Green](https://github.com/olsgreen)
- [All Contributors](https://github.com/thephpleague/oauth2-github/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/oldgreen/oauth2-adobe-sign/blob/master/LICENSE) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~307 days

Total

2

Last Release

1621d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7480518d69b3d7e1f985e9f8b7f5aaf43f4cdeac87bda4eeb832c75f21f0d27?d=identicon)[olsgreen](/maintainers/olsgreen)

---

Top Contributors

[![olsgreen](https://avatars.githubusercontent.com/u/1324164?v=4)](https://github.com/olsgreen "olsgreen (14 commits)")

---

Tags

adobe-signoauth2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/olsgreen-oauth2-adobe-sign/health.svg)

```
[![Health](https://phpackages.com/badges/olsgreen-oauth2-adobe-sign/health.svg)](https://phpackages.com/packages/olsgreen-oauth2-adobe-sign)
```

###  Alternatives

[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

83416.7M61](/packages/knpuniversity-oauth2-client-bundle)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[microsoft/kiota-authentication-phpleague

Authentication provider for Kiota using the PHP League OAuth 2.0 client to authenticate against the Microsoft Identity platform

153.2M7](/packages/microsoft-kiota-authentication-phpleague)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
