Token List Management shows tokens only for current user

Created on 29 December 2023, 11 months ago
Updated 1 February 2024, 10 months ago

Problem/Motivation

When user with permission access any access_token_auth lands on "Token List Management" page it would be nice to see the list of all valid tokens for all users, instead of only the valid tokens for the current user.

Steps to reproduce

Create user A.
Create a token for user A. (programmatically, because there is no UI to create for other users yet)
Login as administrator and go to /admin/config/services/access-token-auth/list
Expected behavior: administrator sees the token for user A
Current behavior: no tokens or only tokens for administrator are displayed

Proposed resolution

Display all valid tokens on this page /admin/config/services/access-token-auth/list, add the column that will display the user for the token. Maybe add some filters to the table as well.
Create a page /user/<uid>/access-tokens to show the user their own tokens, of course only when the user has access own access_token_auth list permission.

Remaining tasks

Create MR or patch

User interface changes

New column in the "Token List Management" for the owner of the token

API changes

No changes

Data model changes

No changes

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇩🇪Germany a.dmitriiev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024