In this video, we'll learn how to use django-sesame to allow users to login with magic URLs that contain authentication tokens.
We'll also learn how to expose individual pages on our websites using django-sesame, with the authenticate() decorator from the library.
We'll discuss how to approach these tasks and how to use the library in this video. In the next video, we'll discuss scoped links.
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
02:05 Setting up Python virtual environment
07:25 Changing django-sesame token name
08:03 User login with django-sesame LoginView
11:34 Handling POST request in Django View
16:35 Exposing views with @authenticate decorator
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://www.bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/django...
🐦 Twitter: / bugbytesio
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
django-sesame: https://django-sesame.readthedocs.io/...
django-sesame User Guide: https://django-sesame.readthedocs.io/...
#python #django #webdevelopment #webdeveloper