Challenge Overview
Challenge Objectives
-
Adjust configuration to use either user or M2M JWTs.
Tech Stack
-
Node.js
Project Background
In this series of challenges, we will build a wrapper around the Topcoder Submission API.
Code Access
Repo: https://github.com/topcoder-platform/topcoder-submission-api-wrapper
Branch: develop
Detailed requirements
Right now, the setup for this module assumes only M2M JWTs will be used.
We need your help to update the module so it also accepts user JWTs.
-
Make the M2M configs optional
-
Update all methods that currently use M2M JWT to use either M2M JWT (like it’s currently implemented) or user JWT. At least one JWT has to be provided. If the M2M configs are missing and no user JWT is provided, throw an error.
-
The user JWT should be passed to the method at the time of execution and not during the initialization like we do for the M2M configs.
-
Update all related documentation.
-
Update all tests to cover both M2M and user JWT.
Should you have any questions, feel free to ask on the challenge forum!
What to Submit
Submit a git patch file for the latest commit in the develop branch.
Make sure to mention the exact commit you used so we can apply your patch without issues and a verification document with details on how to verify your submission.