RedHatQE / pylero

Python wrapper for the Polarion WSDL API
https://redhatqe.github.io/pylero/
MIT License
37 stars 25 forks source link

Update user name with security getUserFromToken #126

Open waynesun09 opened 1 year ago

waynesun09 commented 1 year ago

If user use token to login and the user name is not provided in the config we could use the getUserFromToken function to get the user name with the given token. But the function need user have the permission to use, so it's not available to all users.

We could use the function if current token user is allowed to update the user name for cfg, or else we need caught the exception with the permission error and skip update the user with cfg object.

waynesun09 commented 1 year ago

This issue is a follow up issue with PR https://github.com/RedHatQE/pylero/pull/125