Using _unswizzled_password - #813
Conversation
|
Hi @j0yu , I'm curious how you've run into this. IIRC this code was called from the old browser plugin based Shotgun integrations, which we stopped supporting years ago. |
|
Once reason why we deprecated it was because it was totally unsafe, as you can imagine. |
|
I ran into this trying to replicate the tank shotgun_run_action_auth __clone_pc "uid:name:linuxPath:macPath:winPath" "primaryCfgID" "userLogin" -Is there a more modern CLI or API call that I can make to achieve what "Clone this Configuration..." button does? |
|
There's not, no, but I'm surprised you ran into this code. Did you get a prompt asking you for your password when you ran this? Which platform are you running this on? Browser? Are you using the Shotgun Desktop for the browser integration or a super old browser with the java/browser plugin? |
|
I'm currently running this on CentOS 7, Google Chrome 91. In practice, I'm just running the
So far as I have looked, this seems to be the most publicly available, dev-friendly way I could find to be able to perform the "Clone this Configuration..." action as described in Clone the Pipeline Configuration you want to add an app to and many of the other, official ShotGrid documentations. Another option is to have tk-core/scripts and tk-core/python set in import tank_cmd
tank_cmd.shotgun_run_action_auth(...)But both running from shell using |
Issue
Python 3.2 removed Python 2's
string.maketransandtranslatemethods, which were used bytank_cmd.pyTherefore when run with newer Python 3 interpreters, e.g. 3.7.6 from ShotGrid Desktop, calling
shotgun_run_action_auth()will fail withFixed
_unswizzled_password()for Python 2 and 3 compatible rot-13 translation.