t1mmen/opauth-harvest

Harvest strategy for Opauth

0.1.0 2014-10-30 09:45 UTC

This package is not auto-updated.

Last update: 2024-12-17 04:42:04 UTC


README

Opauth strategy for Harvest authentication.

Implemented based on https://github.com/harvesthq/api

Getting started

  1. Install Opauth-Harvest:

    Using git:

    cd path_to_opauth/Strategy
    git clone https://github.com/t1mmen/opauth-harvest.git Harvest

Or, using Composer, just add this to your composer.json:

{
    "require": {
        "t1mmen/opauth-harvest": "*"
    }
}

Then run composer install.

  1. Create Harvest application at https://platform.harvestapp.com/oauth2_clients

  2. Configure Opauth-Harvest strategy with at least Client ID and Client Secret.

  3. Direct user to http://path_to_opauth/harvest to authenticate

Strategy configuration

Required parameters:

<?php
'Harvest' => array(
	'client_id' => 'YOUR CLIENT ID',
	'client_secret' => 'YOUR CLIENT SECRET'
)

License

Opauth-Harvest is MIT Licensed Copyright © 2014 Timm Stokke (http://timm.stokke.me)