Skip to content

feat: add ShotGrid user authentication with session tokens#96

Draft
aviralgarg05 wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
aviralgarg05:feature/issue-46-shotgrid-auth
Draft

feat: add ShotGrid user authentication with session tokens#96
aviralgarg05 wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
aviralgarg05:feature/issue-46-shotgrid-auth

Conversation

@aviralgarg05
Copy link
Copy Markdown

Implements GitHub issue #46. Adds username/password login flow that authenticates against ShotGrid using authenticate_human_user, retrieves a session token via get_session_token, and returns it to the frontend.

Backend:

  • Add authenticate_user to ProdtrackProviderBase and ShotgridProvider
  • Add LoginRequest/LoginResponse models and POST /auth/login endpoint
  • Add 11 new tests covering auth endpoint and provider method

Frontend:

  • Add LoginParams/LoginResponse interfaces and ApiHandler.login()
  • Convert ProjectSelector from email-only to username/password login
  • Store session token in localStorage, pass as Bearer token with requests

Implements GitHub issue AcademySoftwareFoundation#46. Adds username/password login flow that
authenticates against ShotGrid using authenticate_human_user, retrieves
a session token via get_session_token, and returns it to the frontend.

Backend:
- Add authenticate_user to ProdtrackProviderBase and ShotgridProvider
- Add LoginRequest/LoginResponse models and POST /auth/login endpoint
- Add 11 new tests covering auth endpoint and provider method

Frontend:
- Add LoginParams/LoginResponse interfaces and ApiHandler.login()
- Convert ProjectSelector from email-only to username/password login
- Store session token in localStorage, pass as Bearer token with requests

Signed-off-by: aviralgarg05 <gargaviral99@gmail.com>
@jspada200
Copy link
Copy Markdown
Collaborator

Hey @aviralgarg05 appologies for not commenting on the issue! I have not been able to keep up with the velocity of changes! Currently there is a PR I am wrapping up for adding deployment and google auth. As part of this, I added an Authentication provider. Once that is merged, the auth landscape is going to change in the repo. I am going to ask that we put this PR on hold then adapt it after that PR is in so that all the auth handling uses the same pattern.

@aviralgarg05
Copy link
Copy Markdown
Author

aviralgarg05 commented Feb 28, 2026

@jspada200 I will convert it into a draft then, and wait for your changes

@aviralgarg05 aviralgarg05 marked this pull request as draft February 28, 2026 17:53
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