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

API tokens: Add "Copy" functionality #8717

Closed
3 tasks done
Turbo87 opened this issue May 24, 2024 · 2 comments · Fixed by #9122
Closed
3 tasks done

API tokens: Add "Copy" functionality #8717

Turbo87 opened this issue May 24, 2024 · 2 comments · Fixed by #9122
Assignees
Labels
A-frontend 🐹 C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works

Comments

@Turbo87
Copy link
Member

Turbo87 commented May 24, 2024

As suggested in #8154 (comment), we would like to have a functionality on the frontend that allows us to create a new API token based on the settings of an existing token. This would be very useful for expiring tokens that need to be recreated regularly.

The rough idea is to implement support for a query parameter on the "Create API Token" page that holds the id of the existing token. The creation form will then be prefilled with the settings from the existing token.

Once that exists we could potentially add "Copy" buttons to the existing tokens. We should then also adjust the token expiry notification emails to link directly to the "Create API Token" page with the ID of the token that is expiring.

  • Implement prefill support on the "Create API Token" page
  • Adjust URL in the expiry notification emails
  • Add "Copy" button to the API token list
@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-frontend 🐹 labels May 24, 2024
@Rustin170506
Copy link
Member

Thanks for helping to write it down!

@Rustin170506
Copy link
Member

Finally got some time to get it started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants