Opauth strategy for Truenth authentication.
Implemented based on http://developer.github.com/v3/oauth/ using OAuth2.
Opauth is a multi-provider authentication framework for PHP.
Demo: http://opauth.org/#github
-
Install Opauth-Truenth:
cd path_to_opauth/Strategy git clone git://github.com/uzyn/opauth-truenth.git Truenth
-
Register a Truenth application at <truenth-portal-url/client>
- Authorized URL: enter
http://path_to_opauth/truenth/oauth2callback
- Authorized URL: enter
-
Configure Opauth-Truenth strategy with
client_id
andclient_secret
. -
Direct user to
http://path_to_opauth/truenth
to authenticate
Required parameters:
<?php
'GitHub' => array(
'authorize_url' => 'PORTAL AUTHORIZE URL',
'access_token_url' => 'PORTAL TOKEN URL',
'base_url' => 'PORTAL API URL',
'client_id' => 'YOUR CLIENT ID',
'client_secret' => 'YOUR CLIENT SECRET'
)
Optional parameters:
scope
, state
Opauth-Truenth is MIT Licensed
Copyright © 2015 University of Washington