library opauth-wakatime
Wakatime strategy for Opauth
t1mmen/opauth-wakatime
Wakatime strategy for Opauth
- Monday, January 18, 2016
- by t1mmen
- Repository
- 2 Watchers
- 1 Stars
- 9 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Opauth-Wakatime
[Opauth][1] strategy for Wakatime authentication., (*1)
Implemented based on https://wakatime.com/developers v1 API., (*2)
Getting started
-
Install Opauth-Wakatime:, (*3)
Using git:, (*4)
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:, (*5)
{
"require": {
"t1mmen/opauth-wakatime": "*"
}
}
Then run composer install., (*6)
-
Create Wakatime application at https://wakatime.com/apps, (*7)
-
Configure Opauth-Wakatime strategy with at least Client ID and Client Secret., (*8)
-
Direct user to http://path_to_opauth/wakatime to authenticate, (*9)
Strategy configuration
Required parameters:, (*10)
<?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), (*11)