2017 © Pedro Peláez
 

library oauth2-proxy

A PHP Proxy for OAuth2 APIs to create safe Web Apps.

image

irto/oauth2-proxy

A PHP Proxy for OAuth2 APIs to create safe Web Apps.

  • Friday, February 5, 2016
  • by Irto
  • Repository
  • 2 Watchers
  • 4 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Under Development

oauth2-proxy

A PHP Proxy for OAuth2 APIs to create safe Web Apps., (*1)

This project will help create Web App over OAuth2 API, working how a proxy (or translator) using CSRF and Session for front-end and translating in OAuth2 to back-end API. Project is working over awesome ReactPHP libs and Illuminate (from Laravel) components., (*2)

Example example\server.php:, (*3)

 'http://api.web.domain',
    'port' => 8080,
    'client_id' => 'e22aa202216e86c42beac80f9a6ac2da505dc',
    'client_secret' => '471d2e22aa202216e86c42beac80f9a6ac2da5',
    'grant_path' => '/auth/token',
    'revoke_path' => '/auth/revoke',
    'grant_type' => 'client_grant',

    'session' => [
        'driver' => 'file',
        'folder' => '../storage/sessions/',
        'name' => 'tests',
        'path' => '/',
        'domain' => 'web.domain',
        'lifetime' => 3600,
    ]
        
));

$proxy->run();

?>

It's easy to run, (*4)

    $ php ./server.php

...or in background with nohup, (*5)

    $ nohup php ./server.php &

TODO

  • Unit Tests
  • OAuth2 authorization flow
  • Friendly configuration
  • Documentation (my english is to bad .-.)

The Versions