承接 irto/oauth2-proxy 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

irto/oauth2-proxy

Composer 安装命令:

composer require irto/oauth2-proxy

包简介

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

README 文档

README

oauth2-proxy

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

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.

Example example\server.php:

<?php

require '../vendor/autoload.php';

$proxy = Irto\OAuth2Proxy\Server::create(array(
    'api_url' => '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

    $ php ./server.php

...or in background with nohup

    $ nohup php ./server.php &

TODO

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

统计信息

  • 总下载量: 32
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-04-05