8000 Implement out of band OAuth. by wlynch · Pull Request #80 · sigstore/gitsign · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement out of band OAuth. #80

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

Merged
merged 1 commit into from
Jun 24, 2022
Merged

Implement out of band OAuth. #80

merged 1 commit into from
Jun 24, 2022

Conversation

wlynch
Copy link
Member
@wlynch wlynch commented Jun 20, 2022

Summary

This change adds out of band OAuth support to allow users to generate
OIDC tokens even if their current session does not support opening a
brower.

This works by reading/writing directly to the user's TTY, bypassing
stdin/stdout that is being captured by Git.

Big thanks to @benmoss for doing the initial leg-work here.

This change is dependent on sigstore/sigstore#514, so starting off as draft (even after this is submitted, we should double check the out-of-band flow - I was having trouble with the page redirects, though I was able to confirm that this works by nabbing the code from the devtools console).

Ticket Link

Fixes #20

Release Note

Adds support for out-of-band interactive flows to add support for SSH and other sessions where web browsers are not directly present.

@wlynch wlynch force-pushed the tty branch 7 times, most recently from f8a0edd to d724ad9 Compare June 24, 2022 17:04
This change adds out of ban OAuth support to allow users to generate
OIDC tokens even if their current session does not support opening a
brower.

This works by reading/writting directly to the user's TTY, bypassing
stdin/stdout that is being captured by Git.

Co-authored-by: Ben Moss <benm@vmware.com>
Signed-off-by: Billy Lynch <billy@chainguard.dev>
@wlynch wlynch marked this pull request as ready for review June 24, 2022 17:11
@wlynch wlynch requested a review from imjasonh June 24, 2022 17:11
@wlynch wlynch merged commit c52c82e into sigstore:main Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OAuth device flow support
2 participants
0