jiminny / oauth2-bullhorn
Bullhorn OAuth 2.0 Client Provider for The PHP League OAuth2-Client
Installs: 25 750
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 0
Open Issues: 0
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: 2024-05-18 01:52:53 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.