jiminny / oauth2-bullhorn
Bullhorn OAuth 2.0 Client Provider for The PHP League OAuth2-Client
0.2.0
2021-08-27 12:35 UTC
Requires
- php: ^7.2 || ^8.0
- league/oauth2-client: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.18
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2026-04-04 10:29:24 UTC
README
This package provides Bullhorn OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Installation
To install, use composer:
composer require jiminny/oauth2-bullhorn
Usage
For usage and code examples, check out the PHP League's basic usage guide.
Caveats
Bullhorn does not actually use OAuth across their API. One needs to perform a REST API Login call to obtain what they call bhrestToken and use that intead.
Few notes:
- As is expected the OAuth refresh token will be invalidated on first usage
- A bit surprising the access token is being invalidated on it's first usage as well
- We've observed this on non-successful requests as well (500 response)
- The token is served with expiration time 600, it's recommended to manually expire it on a successfull call.