Skip to content

Create github token from tkn-pac #680

Open
@chmouel

Description

@chmouel

We currently send folks to a web browser to create token,

We can definitively do it the same way gh auth does it :

image

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...

Metadata

Metadata

Assignees

Labels

clifeatureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions