Skip to content
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

Feature Request: Consider adding support for the OAuth2 Device Authorization Flow #2693

Open
MarkJaroski opened this issue Apr 9, 2024 · 3 comments

Comments

@MarkJaroski
Copy link

Is your feature request related to a problem? Please describe.

OAuth2 has a device authorization flow which could provide a smoother authentication method compared to the native application flow which the project uses at the moment.

Describe the solution you'd like

The user should be able to specify the device authorization flow as an option. In this flow the native application presents an 8 character code to the user, who then enters it online, which either authorizes the application against an existing session or authenticates the user.

Describe alternatives you've considered

Well, you could eventually pop up a browser window, but that would be a lot harder to achieve.

Additional context

No response

@abraunegg abraunegg changed the title Feature Request: Feature Request: Consider adding support for the OAuth2 Device Authorization Flow Apr 11, 2024
@kevinchristianson
Copy link

I'm trying to auth in ubuntu server and am struggling to complete the loop with no GUI. I second the request for an alternate device authorization flow.

@abraunegg
Copy link
Owner

abraunegg commented May 14, 2024

@kevinchristianson

I'm trying to auth in ubuntu server and am struggling to complete the loop with no GUI.

FYI - you do not need a GUI to complete the auth process.

You can copy the auth URL to any system, do the auth there, then copy the URI back to the prompt.

@MarkJaroski
Copy link
Author

FYI - you do not need a GUI to complete the auth process.

You can copy the auth URL to any system, do the auth there, then copy the URI back to the prompt.

I can absolutely verify this, and the nativeclient approach isn't a problem for me at all. I've even borrowed this technique - which I first learned about here - in a set of scripts that I wrote to demonstrate OAuth2 flows for my colleagues (and vendors !)

But the device flow is easier for people to understand, so it would be nice to have.

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

No branches or pull requests

3 participants