-
Notifications
You must be signed in to change notification settings - Fork 81
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
Create github token from tkn-pac #680
Comments
7 tasks
zakisk
pushed a commit
to zakisk/pipelines-as-code
that referenced
this issue
Jul 9, 2024
Adds new auth subcommand in tkn-pac CLI that authenticate users with git providers and stores git provider token for further use. fix openshift-pipelines#680 https://issues.redhat.com/browse/SRVKP-5548 Signed-off-by: Zaki Shaikh <[email protected]>
zakisk
pushed a commit
to zakisk/pipelines-as-code
that referenced
this issue
Jul 10, 2024
Adds new subcommand to authenticate user with git providers and stores those token locally for further use of tkn-pac fix openshift-pipelines#680 https://issues.redhat.com/browse/SRVKP-5548 Signed-off-by: Zaki Shaikh <[email protected]>
zakisk
pushed a commit
to zakisk/pipelines-as-code
that referenced
this issue
Aug 20, 2024
Adds new subcommand to authenticate user with git providers and stores those token locally for further use of tkn-pac fix openshift-pipelines#680 https://issues.redhat.com/browse/SRVKP-5548 Signed-off-by: Zaki Shaikh <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We currently send folks to a web browser to create token,
We can definitively do it the same way
gh auth
does it :it redirect to this page :
https://github.com/login/device
which then it use its internal library authflow :
https://github.com/cli/cli/blob/trunk/internal/authflow/flow.go
to validate it and get the token
we would probably need to create our own here:
https://github.com/cli/cli/blob/trunk/internal/authflow/flow.go#L21-L24
and we can reuse the same logic for Github Enteprise...
The text was updated successfully, but these errors were encountered: