Skip to content
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

Login automatically to anonymous user #10

Merged
merged 3 commits into from
Nov 15, 2023
Merged

Conversation

tijmenbaarda
Copy link
Contributor

Create an index view which automatically logs in the user to a dedicated anonymous user. This user is created on the fly if it does not exists.

Contains adaptations to the login and logout templates, to allow the user to login as an anonymous user again without having to go to the index page manually.

Closes #8

@tijmenbaarda tijmenbaarda requested a review from ar-jan November 14, 2023 13:08
Copy link
Collaborator

@ar-jan ar-jan left a comment

Choose a reason for hiding this comment

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

Works and looks good to me.

I do suppose we are making it easy to carry out a denial-of-service type attack, since it's possible to flood the database with anonymous user sessions. Unlikely to be an issue from regular use, but easy to do intentionally. Do we consider this acceptable?

lidiabrowser/lidiabrowser/init.py Show resolved Hide resolved
@tijmenbaarda tijmenbaarda merged commit 2cb93d2 into develop Nov 15, 2023
2 checks passed
@tijmenbaarda tijmenbaarda deleted the feature/anonymous branch November 15, 2023 15:50
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.

Make the admin interface available to anonymous users
2 participants