Auth Kit

All authentication features in one place

{% if is_authenticated %} Authenticated {{ user.username }} {% else %} Not Authenticated {% endif %} Auth Type: {{ auth_type|upper }} {% if use_auth_cookie %} Cookie Auth Enabled {% endif %} {% if use_mfa %} MFA Enabled {% endif %}

Authentication

{% if not is_authenticated %}
POST /api/auth/login/
{% if login_uses_email %}
{% elif login_uses_username %}
{% else %}
{% endif %}
{% if has_social_auth and social_providers %}
OR
{% endif %}
{% else %}
POST /api/auth/logout/
{% endif %}
{% if not is_authenticated %}

Registration

POST /api/auth/registration/
{% if has_username_field %}
{% endif %}
{% if has_first_name %}
{% endif %} {% if has_last_name %}
{% endif %}
{% endif %} {% if is_authenticated %}

User Profile

GET /api/auth/user/
PUT /api/auth/user/
{% if has_username_field %}
{% endif %}
{% if has_first_name %}
{% endif %} {% if has_last_name %}
{% endif %}
{% endif %}

Password Management

{% if is_authenticated %} {% else %} {% endif %} {% if not is_authenticated %} {% endif %}
{% if is_authenticated %}
POST /api/auth/password/change/
{% else %}
POST /api/auth/password/reset/
POST /api/auth/password/reset/confirm/
{% endif %}
{% if is_authenticated and has_social_auth and social_providers %}

Social Connections

{% if social_connections %}

Connected Accounts

{% for connection in social_connections %} {% endfor %}
Connect More
{% endif %}
{% endif %}