Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement sudo_as_login for Toolkit #791

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

michaelpixelscoder
Copy link

Hi,

Following this post on community.shotgunsoftware.com: https://community.shotgunsoftware.com/t/shotgunauthenticator-create-script-user-implement-sudo-as-login/10549

I submit this MR to see if it could be merged on your side.

Motivations:

  • When using ShotgunToolkit on the render farm the only way to do operations in the name of the user is to serialize the user session to the render farm. But the session will expire quickly.
  • This was only doable using the shotgun_api3 before and doing operations like opening a work scene updating references using breakdown and re publishing was not possible in the name of the user.

This MR contains:

  • Implement sudo_as_login argument to ShotgunAuthenticator.create_script_user with unit test
  • Change behavior of Configuration._set_authenticated_user to use bootstrap user if sudo_as_login is set.

Hope it can be useful to someone else!

DalteoCraft

@michaelpixelscoder michaelpixelscoder force-pushed the feature/sudo_as_login_auth branch 4 times, most recently from 6502bbe to 67718af Compare November 2, 2020 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants