ytsaurus-ui
ytsaurus-ui copied to clipboard
Allow user to issue and manage tokens from UI
This issue is related to https://github.com/ytsaurus/ytsaurus/issues/227.
In OSS version in the bottom-left corner of the interface there is an avatar. After clicking on it, the context menu appears, which contains the option of changing the user password. We'd like to get another option of managing user tokens (which are used for various SDKs and CLI as an authentication scheme).
This should look like a separate page "/tokens", which provides the UI for the following commands of the API/CLI: issue_token, list_user_tokens, revoke_token. Note: these commands accept sha256-encoded password, not the raw password.
How it should look like:
- Upon opening the page user must enter his password, this password is required as an
password_sha256
parameter for all API calls as an additional security measure. - If entered correctly, the list of the sha256-encoded tokens should appear (taken from
list_user_tokens
command). - Also, there should be a button "Issue new token", which results in creation of a new token, it should be added to the list.
- Near each token hash there should be a trash bin icon, which results in revoking this token (
revoke_token
command, token must be sent in token_sha256 form).