France-ioi / AlgoreaBackend

Backend for the new Algorea platform
MIT License
1 stars 2 forks source link

Allow not providing the access token when the task token is provided #1057

Closed smadbe closed 2 months ago

smadbe commented 3 months ago

Motivations

As shown in the token interaction with tasks, task interactions starts with getting a task token, and then may ask for an answer token or a hint request token, both given a task token.

For these 2 requests, both the usual access token and the task token are provided. However, other agents than the frontend may need to use these services. A CLI is planned as well. It is better if these external tools do not need the access token.

Subtasks

For the POST /answers (generate an answer token) and POST /items/ask-hint (Register a hint request) services: