bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

Use this library in cli #821

Open iNDicat0r opened 7 years ago

iNDicat0r commented 7 years ago

Hi I was wondering if its possible to use this library in cli mode. There are specific requirements where i have to execute the php code in cli ( php index.php). Basically i need to run php in aws lambda, and need to integrate a serverless solution with this library.

For instance the createFromGlobals function does automatically parse the input data. I would like to be able to pass them manually..

Regards

danopz commented 7 years ago

You don't have to use createFromGlobals, you can just create your own Request:

new Request();