t1mmen / opauth-wakatime
Wakatime strategy for Opauth
1.0
2016-01-18 05:29 UTC
Requires
- php: >=5.2.0
- opauth/opauth: >=0.2.0
This package is not auto-updated.
Last update: 2024-12-21 19:39:08 UTC
README
Opauth strategy for Wakatime authentication.
Implemented based on https://wakatime.com/developers v1 API.
Getting started
-
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
.
-
Create Wakatime application at https://wakatime.com/apps
-
Configure Opauth-Wakatime strategy with at least
Client ID
andClient Secret
. -
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)