-
Notifications
You must be signed in to change notification settings - Fork 783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for OAuth Device Flow #903
Comments
It's not supported at present. There is an old request to add this to OAuth2-Server though. I will pick this up in a week's time and add it in. I've tagged it for the version 8 branch but hopefully it can be added to version 7 if there is no BC breaks. I plan on adding a lot of features during the Christmas break time permitting. |
awesome! thx |
I'll mark this as an enhancement we might consider once OAuth2-Server has added support :) |
i get the same error. How to fix it |
@Sephster : any news on this? |
I started on this over Christmas and it is about 50% done. Need to pick it up again soon. No definite date on when this will be released though as my time has been stretched more than I thought. The main issue I'm contending with at the moment is how to implement the view. I am leaning towards not implementing one and letting the implementers decide how this is created. This will require good guidance in the docs and also updates to the examples so it is a bigger job than I initially anticipated. |
no problem. was just curious. |
This was the original PR in the league's repo thephpleague/oauth2-server#626. I will likely update this one as well though |
Has there been any progress on that front? |
@Sephster This issue is referring to the Out-of-bounds device flow / device grant used on stuff like TVs, STBs, Home Stereos and Car Infotainment devices etc that don't have a browser or a comfortable user input. The issue you mentioned on the oauth2-server is about the dynamic registration stuff and has a separate issue on Passport in #804 |
Hi @Sephster I have a working example with the laravel/passport that implements the device flow using this fork device-flow-grant that expands on the work that you already have done with @lucadegasperi you can see it here yovchev/passport I have the full device flow cycle using post requests (all requests and responses including errors are as per rfc8628 spec) And also I have implemented a widget for laravel passport for visual device code activation I'm going to be setting up a pull request for laravel passport next few days so please let me know if I can do anything to speed up the pull request on thephpleague/oauth2-server @driesvints can you suggest where to do the pull request on laravel against master? Also will be great if some of you guys want to help push this out as I don't have much time on my hands and there is some cleaning and test's to be written. |
Hey @yovchev. First of all: thanks for all your work on this 👍 I think it's best that we wait until oauth2-server has merged that open pr first and tagged a new release. The pull request for passport will depend on wether your PR introduces any breaking changes. If there are it's probably best sent to master. If not it can be sent to the current stable release branch. I don't have much time myself at this point to help out I'm afraid, sorry. |
@yovchev - Have you submitted a PR to oauth2-server? I'm interested in seeing this making it into production |
Did this go anywhere? I’ll be embarking on a Roku app soon and will need to use this to authenticate users against my Laravel-based app. |
The issue on OAuth Server 2 is still open so I don't think so, no. thephpleague/oauth2-server#626 |
Yeah the development is done but needs some testing. I am working on this but progress is slow |
Thanks for your work @Sephster 👍 |
Gonna close this for now until it's landed in OAuth2 Server. Thanks. |
@driesvints can this be reopened now that OAuth Server 9.x has been released with the device grant included? https://github.com/thephpleague/oauth2-server/releases/tag/9.0.0 |
Not re-opened but as said in #1734 we're now accepting PR's to 13.x for the device flow. I believe @hafezdivandari will work on this. |
You may refer to PR #1750 |
Hi there.
I am working on a project in which I want to pair a piece of hardware to the user account.
I am a fan of how other project (youtube, apple tv, etc) do it - with OAuth Device Flow).
https://tools.ietf.org/html/draft-ietf-oauth-device-flow-13
Any chance Passport supports (or can support) this flow?
When testing the apis with this instrucction, I get
The text was updated successfully, but these errors were encountered: