Skip to content

Authentication solution test task. Uses Django sessions.

Notifications You must be signed in to change notification settings

noXplode/magic-link-test-task

Repository files navigation

magic-link-test-task

Clone repository, inside magic-link-test-task directory create and activate your virtual envienvironment, Run:

pip install -r requirements.txt

Create .env file

SECRET_KEY=INSERT_YOUR_DJANGO_SECRET_KEY_HERE

Run

python manage.py migrate
python manage.py createsuperuser
python manage.py runserver

task

Problem: We want to create an authentication solution that doesn’t require our users to input an email/password.
We want to be able to generate a magic link that works for a specific user’s email until we remove access.

Example: We want to allow [email protected] have access to the site. So we generate a magic link to [email protected] and an email gets sent to them with the magic link url.
Every time we hit the url with the magic link token, the counter for that user should increase by 1 (So we know how many times they checked out the link).

Important: The route that requires the magic link token should not be accessible without the magic link. We are not going to force any technology for this exercise, but we require that the solution is built in-house (no use of external magic link generators like auth0) The project should be pushed to github or another repository of your choice.

About

Authentication solution test task. Uses Django sessions.

Topics

Resources

Stars

Watchers

Forks

Languages