Skip to content

TeamService: use m2m token for internal api calls #73

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

Merged

Conversation

imcaizheng
Copy link
Contributor

Changelog

  • All internal api calls inside TeamService(except helper.getProjects() and helper.getProjectById()) are directly using m2m token instead of delegating the token from user who make the request.
    This also affects JobService, so the _validateSkills() function in JobService is slightly modified to catch up the changes.
  • TeamService.getTeamJob() would check if user can access the team by invoking helper.getProjectId() before continue to process the request.

@maxceem maxceem merged commit e29d842 into topcoder-platform:dev Dec 19, 2020
@maxceem
Copy link
Contributor

maxceem commented Dec 19, 2020

Locally PR works good. Merging for one more test on DEV.

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