Opauth strategy for Strava authentication.
Implemented based on http://strava.github.io/api/v3/oauth/ using OAuth 2.0.
Opauth is a multi-provider authentication framework for PHP.
-
Install Opauth-Strava:
cd path_to_opauth/Strategy git clone git://github.com/csl-web/opauth-strava.git Strava
-
Create a Strava APIs project at http://www.strava.com/developers
- Make sure that website and redirect Domain is set
-
Configure Opauth-Stava strategy.
-
Direct user to
http://path_to_opauth/strava
to authenticate
Required parameters:
<?php
'Strava' => array(
'client_id' => 'YOUR CLIENT ID',
'client_secret' => 'YOUR CLIENT SECRET'
)
Optional parameters:
scope
, state
, access_type
, approval_prompt
Opauth-Strava is MIT Licensed
Copyright © 2014 CSL-WEB (http://www.csl-web.com)