Skip to content

dineshbyte/oauth2-greenhouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GreenHouse Provider for OAuth 2.0 Client

This package provides GreenHouse OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Installation

To install, use composer:

composer require krdinesh/oauth2-greenhouse

Usage

Usage 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.

$options = [
    'scope' => ['candidates.views','candidates.create','jobs.views'] // array or string
];

$authorizationUrl = $provider->getAuthorizationUrl($options);

Testing

$ ./vendor/bin/phpunit

License

The MIT License (MIT). Please see License File for more information.