Skip to content

Manual entry of user_code for device auth #999

Closed

Description

@plotnick

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.

Activity

  1. david-crespo commented on Jun 29, 2022

    @david-crespo
    Collaborator

    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.

    2022-06-29-gh-auth

  2. just-be-dev commented on Jun 30, 2022

    @just-be-dev
    Contributor

    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)

  3. david-crespo commented on Jun 30, 2022

    @david-crespo
    Collaborator

    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.

  4. modified the milestones: Guided Demo, on Oct 22, 2022
  5. added this to the MVP milestone on Feb 6, 2023
  6. david-crespo commented on Feb 6, 2023

    @david-crespo
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions