View Issue Details

IDProjectCategoryView StatusLast Update
0032245mantisbtapi restpublic2024-01-10 04:01
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version2.25.5 
Target Version2.26.0Fixed in Version2.26.0 
Summary0032245: REST API for creating API tokens for users
Description

It should be possible to create API tokens for current users or other users (for users that can manage other users).

TagsNo tags attached.

Relationships

related to 0032469 closedvboctor REST API: Support impersonation of users 
related to 0033489 new User authentication using REST API in different web applications (For example a Symfony web-app) 

Activities

Related Changesets

MantisBT: master 4772c69f

2023-03-25 23:09

vboctor


Details Diff
Add UserCreateTokenCommand

Fixes 0032245
Affected Issues
0032245
mod - core/api_token_api.php Diff File
add - core/commands/UserCreateTokenCommand.php Diff File

MantisBT: master dc40289c

2023-03-25 23:10

vboctor


Details Diff
Add REST API for creating user tokens

Fixes 0032245
Affected Issues
0032245
mod - api/rest/restcore/users_rest.php Diff File

MantisBT: master 93b3adb7

2023-03-25 23:10

vboctor


Details Diff
Update Web UI to use UserCreateTokenCommand

Fixes 0032245
Affected Issues
0032245
mod - api_token_create.php Diff File

MantisBT: master ef844216

2023-03-25 23:25

vboctor


Details Diff
Rename create API token command and use config date format

Fixes 0032245
Affected Issues
0032245
mod - api/rest/restcore/users_rest.php Diff File
mod - api_token_create.php Diff File
mv - core/commands/UserCreateTokenCommand.php → core/commands/UserTokenCreateCommand.php Diff File

MantisBT: master 7dcbf30f

2023-03-26 02:01

vboctor


Details Diff
Block creation of tokens for users with higher access level

Fixes 0032245
Affected Issues
0032245
mod - core/commands/UserTokenCreateCommand.php Diff File

MantisBT: master 497cbdaf

2023-03-28 20:51

vboctor


Details Diff
Remove unused variable

Fixes 0032245
Affected Issues
0032245
mod - api/rest/restcore/users_rest.php Diff File

MantisBT: master a0aba44d

2023-03-28 21:13

vboctor


Details Diff
Use impersonate access level to create/delete API tokens

Fixes 0032245
Affected Issues
0032245
mod - core/commands/UserTokenCreateCommand.php Diff File
mod - core/commands/UserTokenDeleteCommand.php Diff File

MantisBT: master 8aa2d379

2023-03-28 21:15

vboctor


Details Diff
Better handling for tokens relating to a user that doesn't exist

Fixes 0032245
Affected Issues
0032245
mod - core/commands/UserTokenCreateCommand.php Diff File
mod - core/commands/UserTokenDeleteCommand.php Diff File

MantisBT: master e8755c4a

2023-03-28 21:16

vboctor


Details Diff
Clarify user_id vs. token_id in API router naming

Fixes 0032245
Affected Issues
0032245
mod - api/rest/restcore/users_rest.php Diff File

MantisBT: master 7ac2e8e0

2023-03-28 21:38

vboctor


Details Diff
Fixes to error messages

Fixes 0032245
Affected Issues
0032245
mod - core/commands/UserTokenCreateCommand.php Diff File
mod - core/commands/UserTokenDeleteCommand.php Diff File
mod - lang/strings_english.txt Diff File