11.3 Dodavanje Google i GitHub Autentifikacije
Instalacija potrebnih paketa:
pip install "django-allauth[socialaccount]"
Dodavanje aplikacija u settings.py:
INSTALLED_APPS = [
...
'allauth.socialaccount.providers.google',
'allauth.socialaccount.providers.github',
...
]



Kroz admin dashboard se može uspostaviti autentifikacija putem Google i GitHub providera.



Dokumentacija za Allauth
/ForgeAI # Root repozitorija
├── /venv
│ ├── pyvenv.cfg
│ ├── /Lib
│ │ ├── /allauth
│ │ │ ├── /templates
│ │ │ │ ├── (HTML Templates)
/ForgeAI # Root repozitorija
├── /ForgeAI
│ ├── /templates
│ │ ├── /allauth
│ │ │ ├── /elements
│ │ │ │ ├── alert.html
│ │ │ │ ├── h1.html
│ │ │ │ ├── button.html
│ │ │ │ ├── ...
│ │ │ ├── /layouts
│ │ │ │ ├── base.html
│ │ │ │ ├── entrance.html
│ │ │ │ ├── manage.html
Templates se mogu stilizirati na osnovu ove dokumentacije.
Last modified: 04 June 2024