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

cmd/cue: add a cue login --token flag to log into a registry with a token generated via the web UI #3560

Open
mvdan opened this issue Nov 7, 2024 · 0 comments
Assignees
Labels
modules Issues related to CUE modules and the experimental implementation

Comments

@mvdan
Copy link
Member

mvdan commented Nov 7, 2024

Thanks to the work that @rustamabd2 has done on the server side over the last week, we can now generate tokens via the web UI. We need a command like cue login --token to be able to add them to $CUE_CONFIG_DIR/logins.json easily.

With v1 tokens, the token generated by the web UI is simply an access token, so this would result in an entry in $CUE_CONFIG_DIR/logins.json with just access_token but no expiry. We're discussing v2 tokens on the backend side to embed the expiry timestamp as part of the encoded token to fix this minor issue.

@mvdan mvdan added the modules Issues related to CUE modules and the experimental implementation label Nov 7, 2024
@mvdan mvdan self-assigned this Nov 7, 2024
@mvdan mvdan moved this from Backlog to v0.11.0 in Release v0.11 Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modules Issues related to CUE modules and the experimental implementation
Projects
Status: Backlog
Status: v0.11.0
Development

No branches or pull requests

1 participant