Skip to content

feat: basic HTTP auth, configuration page and lots of refactoring - #20

Merged
regisb merged 15 commits into
releasefrom
regisb/http-basic-auth
Aug 14, 2025
Merged

feat: basic HTTP auth, configuration page and lots of refactoring#20
regisb merged 15 commits into
releasefrom
regisb/http-basic-auth

Conversation

@regisb

@regisb regisb commented Aug 12, 2025

Copy link
Copy Markdown
Contributor

No description provided.

regisb added 7 commits August 11, 2025 11:29
This prefix does not cause any issue but it's unnecessary.
This also allows us to handle missing plugins, i.e:
/plugin/missingplugin.
This error was caused by a previous change in which we removed extra ID
elements. This is now made simpler thanks to SCSS.
@regisb

regisb commented Aug 12, 2025

Copy link
Copy Markdown
Contributor Author

FYI @mlabeeb03. I'll try to finalize this tomorrow (Wednesday).

regisb added 2 commits August 12, 2025 22:13
Instead of storing a cookie for every plugin that requires launch, we
create a single cookie with '+' separated value. We make use of the
cookieStore native API (available everywhere since June 2025) to access
cookie data. The variables are renamed to be more explicit. We now use
class-based SCSS for styling, instead of manually setting style.display
attribute.
This has almost no impact, outside of rewording some items.
@regisb
regisb force-pushed the regisb/http-basic-auth branch 2 times, most recently from 4baecfc to 522c952 Compare August 12, 2025 20:15
@DawoudSheraz DawoudSheraz moved this from Pending Triage to In Progress in Tutor project management Aug 13, 2025
Comment thread tutordeck/server/app.py Outdated
regisb added 3 commits August 13, 2025 17:22
This is performed via two configuration settings. Note however that we
don't yet support automatic reloading of credentials. This is
unfortunate because there is no way to reload tutor Deck...
This panel displays all the main configuration item. Note however that
there are still many TODO items, we should really clean them.
@regisb
regisb force-pushed the regisb/http-basic-auth branch from 522c952 to 55dfab1 Compare August 13, 2025 15:26
@regisb
regisb force-pushed the regisb/http-basic-auth branch 2 times, most recently from 3335d51 to 6917c70 Compare August 14, 2025 11:08
To achieve that, we had to get rid of the seq_command_executed request
parameter. We replaced it by a cookie, which is cleared after the
warning is displayed.

Note that we had to remove a feature, which was to disable/enable all
inputs while commands were running. This was causing very weird
behaviour, where some disabled buttons were being re-enabled again.

We also had to get rid of the cookieStore, which is not compatible with
non-https access. Http access is required in the self-serve AMI, for
instance.
@regisb
regisb force-pushed the regisb/http-basic-auth branch from 6917c70 to 898f5a2 Compare August 14, 2025 11:24
@regisb
regisb marked this pull request as ready for review August 14, 2025 14:03
@regisb
regisb merged commit 812a6c9 into release Aug 14, 2025
2 checks passed
@regisb
regisb deleted the regisb/http-basic-auth branch August 14, 2025 14:14
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Tutor project management Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants