{% extends "django_simple_third_party_jwt_dev_dashboard/base.html" %} {% block title %}Dev Dashboard{% endblock %} {% block content %}

JWT and session playground

Dev Dashboard

Log in every way your project supports, then watch the JWT and the session here.

JWT

Not logged in

Kept in this browser's localStorage. Every visit refreshes it and asks the server to verify it.

No JWT in this browser yet. Use JWT Login, or the Google or Microsoft button.
JWT Login

Session

{% if request.user.is_authenticated %}Logged in{% else %}No session{% endif %}

Django's session cookie, set by Session Login or the admin.

{% if request.user.is_authenticated %}

Logged in as {{ request.user }} with this session. {% if request.user.is_superuser %}superuser{% elif request.user.is_staff %}staff{% endif %}

Session Logout
{% else %}

No session login yet.

Session Login
{% endif %}
{% endblock %} {% block aside %} {{ block.super }}

OAuth clients

{% for sign_in in sign_ins.values %}
{{ sign_in.label }} Client ID
{% if sign_in.configured %}{{ sign_in.client_id }}{% else %}Not set up{% endif %}
{% endfor %}

Endpoints

{% endblock %}