{"repo":"aaronpk/Device-Flow-Proxy-Server","free":true,"listed":false,"github":"https://github.com/aaronpk/Device-Flow-Proxy-Server","clone":"git clone https://github.com/aaronpk/Device-Flow-Proxy-Server.git","description":"Add the OAuth 2.0 Device Flow to any OAuth server","language":"PHP","stars":88,"topics":["oauth","oauth2","device-flow"],"license":null,"category":"auth-billing-email","readme_excerpt":"OAuth 2.0 Device Flow Proxy Server ================================== A demonstration of the OAuth 2.0 Device Code flow for devices without a browser or with limited keyboard entry. This service acts as an OAuth server that implements the device code flow, proxying to a real OAuth server behind the scenes. Installation ------------ In the .env file, fill out the required variables. You will need to install Redis if it is not already on your system, or point to an existing redis server in the config file. Define your OAuth server's authorization endpoint and token endpoint URL. Heroku Deploy To deploy this in Heroku, you'll need to do the following: Create a new Heroku application, and take note of the name. Define environment variables in Heroku's admin interface based on the values from .env.example with the exception of REDIS URL . Usage ----- The device will need to register an application at the OAuth server to get a client ID. You'll need to set the proxy's URL as the callback URL in the OAuth application registration: The device can begin the flow by making a POST request to this proxy: The response will contain the URL the user should visit and the code they should enter, as well as a long device code. The device should instruct the user to visit the URL and enter the code, or can provide a full link that pre-fills the code for the user in case the device is displaying a QR code. http://localhost:8080/device?code=248707 The device should then poll the token endpoint at","default_branch":null,"files":null,"tree":[],"storefront":"/r/aaronpk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aaronpk/Device-Flow-Proxy-Server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}