You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the client (e.g., CLI) attempting to perform an OAuth Device Authorization Grant can't open a browser window automatically, the user must be able to type in the user_code (a short code like BQPX-FGQR) and then submit the verification form.
Github makes you paste the code every time, which pretty much mitigates the emailed link attack vector. So I'm inclined to never prefill. It's slightly less slick but it's dramatically more secure.
As I understand it the functionality here was added in #929. The work left to do is enhance the styles and perhaps take another look at the implementation (e.g. copy vs autofill)
Not exactly. Right now there's no input for the code. We pull the code from the query string, display it on screen, and automatically put it in the POST body when they hit submit. This issue is about adding an input field and probably not doing the query string thing at all.
I feel this belongs in MVP because it's a security thing. We should do a basic version right away with an ugly plain input and then make it pretty like the GitHub one later.
Activity
david-crespo commentedon Jun 29, 2022
Github makes you paste the code every time, which pretty much mitigates the emailed link attack vector. So I'm inclined to never prefill. It's slightly less slick but it's dramatically more secure.
just-be-dev commentedon Jun 30, 2022
As I understand it the functionality here was added in #929. The work left to do is enhance the styles and perhaps take another look at the implementation (e.g. copy vs autofill)
david-crespo commentedon Jun 30, 2022
Not exactly. Right now there's no input for the code. We pull the code from the query string, display it on screen, and automatically put it in the POST body when they hit submit. This issue is about adding an input field and probably not doing the query string thing at all.
david-crespo commentedon Feb 6, 2023
I feel this belongs in MVP because it's a security thing. We should do a basic version right away with an ugly plain input and then make it pretty like the GitHub one later.