t1mmen/opauth-wakatime

Wakatime strategy for Opauth

1.0 2016-01-18 05:29 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:01:45 UTC


README

Opauth strategy for Wakatime authentication.

Implemented based on https://wakatime.com/developers v1 API.

Getting started

  1. Install Opauth-Wakatime:

    Using git:

    cd path_to_opauth/Strategy
    git clone https://github.com/t1mmen/opauth-wakatime.git Wakatime

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

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

Then run composer install.

  1. Create Wakatime application at https://wakatime.com/apps

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

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

Strategy configuration

Required parameters:

<?php
'Wakatime' => array(
	'client_id' => 'YOUR CLIENT ID',
	'client_secret' => 'YOUR CLIENT SECRET',
  'scope' => 'email' // Is default – when setting yourself, remember to include email in scope!
)

License

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