Skip to content

[Feature] API tokens page - #1041

Closed
louis-ab wants to merge 2 commits into
INGInious:mainfrom
louis-ab:API-token-page
Closed

louis-ab wants to merge 2 commits into
INGInious:mainfrom
louis-ab:API-token-page

Conversation

@louis-ab

Copy link
Copy Markdown
Contributor

This PR adds a page to the course administration menu than allows admins to create and manage API tokens so that we can later use them in an API.

The purpose of this future API will be to retrieve information and statistics on student submissions.

@anthonygego anthonygego added this to the v0.10 milestone Mar 26, 2025
Comment thread configuration.deploy.yaml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add a comment on how to generate this string so that people could replace it easily on setup ?

The key should also be replicated with small explanation in INGInious/docker-compose.yml

As I guess this is a mandatory parameter, we should also update the installer script to generate it appropriately in INGInious/inginious/frontend/installer.py.

@anthonygego anthonygego left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

My comment from 2 weeks ago is still relevant.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should support i18n here too.

Comment thread inginious/frontend/flask/mapping.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This path needs to be updated.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It would be better not to hardcode the max date here, either these tests can be performed at the Python side, either date.max can be passed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why don't you use the same converter ? str or, as documented, isoformat(' ') ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Adding a prefix to the id is a good practice.

@anthonygego

anthonygego commented Apr 14, 2025

Copy link
Copy Markdown
Member

There are still conflicts. According to the diff, I suspect your local branch is not correctly rebased on main. There should not be removals of <cookieless>/ mappings in this PR.

@louis-ab
louis-ab requested a review from anthonygego April 14, 2025 10:51
@nrybowski nrybowski added the Feedback needed Project maintainers wait for feedback from OP label Jun 18, 2025
@nrybowski
nrybowski self-requested a review June 18, 2025 09:45
@anthonygego

Copy link
Copy Markdown
Member

I'm closing this as this set of PRs as they would need some rework and this feature is not a priority for now.

@anthonygego anthonygego closed this Sep 9, 2025
@anthonygego anthonygego mentioned this pull request Aug 31, 2026
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feedback needed Project maintainers wait for feedback from OP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants