Name: opauth-cpro-common
Owner: University of Washington Clinical Informatics Research Group
Description: OAuth2 Strategoy for cPRO Common
Created: 2018-03-21 14:39:45.0
Updated: 2018-03-21 15:02:34.0
Pushed: 2018-03-21 15:02:33.0
Homepage: null
Size: 9
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Opauth strategy for cPRO 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-Cpro-Common:
pp/Plugin/Opauth/Strategy
clone https://github.com/uwcirg/opauth-cpro-common.git CproCommon
Register the cPRO application/intervention at the appropriate
cPRO Portal URL, i.e. https://mpower.cirg.washington.edu/client
Enter Authorized URL: (i.e. the callback URL for the
application/intervention being install i.e.
http://fqdn/application-path/truenth/oauth2callback
Configure Opauth-Cpro-Common strategy with client_id
and client_secret
returned from the portal /client
request.
Direct user to http://fqdn/application-path/truenth
to authenticate
Required parameters:
p
Hub' => 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-Cpro-Common is MIT Licensed
Copyright © 2015 University of Washington