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

Expose API route to get Project Access Token for SAB #1055

Merged
merged 10 commits into from
Dec 4, 2024

Conversation

FyreByrd
Copy link

@FyreByrd FyreByrd commented Dec 2, 2024

Exposes /api/project/[id=idNumber]/token as a route that SAB can POST to to get a Project Access Token for downloads and uploads.

@FyreByrd FyreByrd requested a review from chrisvire December 2, 2024 19:42
@FyreByrd FyreByrd mentioned this pull request Dec 3, 2024
AllowedUserNames: user[0].Name,
TransitionType: ProductTransitionType.ProjectAccess,
InitialState: 'Project ' + use,
WorkflowUserId: user[0].WorkflowUserId,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Populate with user.Id as a string. Don't assign AllowedUserName. Display name base on WorkflowUserId. If it is a GUID, look up user.WorkflowUserId. If it is just an int, lookup user.Id

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, add ProductTransitions.UserId and S2 will populate that.

Copy link
Member

@chrisvire chrisvire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change WorkflowUserId to UserId in another PR

@FyreByrd FyreByrd force-pushed the feature/project-uploads branch from eeb02bb to b6c9b07 Compare December 4, 2024 22:12
@FyreByrd
Copy link
Author

FyreByrd commented Dec 4, 2024

Fixed merge conflicts

@FyreByrd FyreByrd merged commit 3b8dcbe into feature/svelte Dec 4, 2024
2 checks passed
@FyreByrd FyreByrd deleted the feature/project-uploads branch December 4, 2024 22:12
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.

3 participants