-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
AllowedUserNames: user[0].Name, | ||
TransitionType: ProductTransitionType.ProjectAccess, | ||
InitialState: 'Project ' + use, | ||
WorkflowUserId: user[0].WorkflowUserId, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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
Any queries against this route are currently returning the login page instead of the expected response, so I have been unable to test this further. Will need to figure out later.
eeb02bb
to
b6c9b07
Compare
Fixed merge conflicts |
Exposes
/api/project/[id=idNumber]/token
as a route that SAB can POST to to get a Project Access Token for downloads and uploads.