uwcirg/opauth-tb

Name: opauth-tb

Owner: University of Washington Clinical Informatics Research Group

Description: OAuth2 strategy for https://github.com/uwcirg/tb-mobile-app

Created: 2018-02-28 21:38:42.0

Updated: 2018-02-28 21:39:01.0

Pushed: 2018-03-07 03:51:49.0

Homepage: null

Size: 6

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Opauth-Truenth

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

Getting started
  1. Install Opauth-Truenth:

    pp/Plugin/Opauth/Strategy 
    clone https://github.com/uwcirg/opauth-truenth.git Truenth
    
  2. Register the Truenth application/intervention at the appropriate Truenth Portal URL, i.e. https://truenth-demo.cirg.washington.edu/client

  3. Enter Authorized URL: (i.e. the callback URL for the application/intervention being install i.e. http://fqdn/application-path/truenth/oauth2callback

  4. Configure Opauth-Truenth strategy with client_id and client_secret returned from the portal /client request.

  5. Direct user to http://fqdn/application-path/truenth to authenticate

Strategy configuration

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

License

Opauth-Truenth is MIT Licensed
Copyright © 2015 University of Washington


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.