Skip to content

API token: automatically redirect or refresh after displaying newly created token #38159

@LGKentang

Description

@LGKentang

What problem would this solve?

After creating an API token, the page continues displaying the token indefinitely. If I leave the tab open and forget to close it, the token remains visible for a long time.

Since the token is intended to be shown only once, it would be safer if the page automatically expired after some time instead of continuing to display the token indefinitely.

What do you propose?

After displaying the newly created token, automatically redirect the user after a configurable timeout (for example, 1–5 minutes).

Possible behaviors:

  • Automatically redirect to the API token list page.
  • Require reauthentication after the timeout.
  • Refresh the page and stop displaying the token.
  • Show a warning or countdown before redirecting.

This would reduce the chance of accidentally leaving sensitive tokens visible in an open browser tab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions