Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dineshbyte/oauth2-greenhouse
https://github.com/dineshbyte/oauth2-greenhouse
authentication authorization greenhouse oath2
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dineshbyte/oauth2-greenhouse
- Owner: dineshbyte
- License: mit
- Created: 2017-07-10T19:11:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T04:58:24.000Z (about 7 years ago)
- Last Synced: 2024-04-22T16:16:13.139Z (8 months ago)
- Topics: authentication, authorization, greenhouse, oath2
- Language: PHP
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GreenHouse Provider for OAuth 2.0 Client
This package provides GreenHouse OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).
## Installation
To install, use composer:
```
composer require krdinesh/oauth2-greenhouse
```
## UsageUsage is the same as The League's OAuth client, using `\League\OAuth2\Client\Provider\GreenHouse` as the provider.
### Managing Scopes
When creating your GreenHouse authorization URL, you can specify the state and scopes your application may authorize.
```php
$options = [
'scope' => ['candidates.views','candidates.create','jobs.views'] // array or string
];$authorizationUrl = $provider->getAuthorizationUrl($options);
```
## Testing``` bash
$ ./vendor/bin/phpunit
```## License
The MIT License (MIT). Please see [License File](https://github.com/krdinesh/oauth2-greenhouse/blob/master/LICENSE) for more information.