{% extends "base.html" %} {% block content %} {% if user.is_authenticated %}

Logged in as {{ user.get_username }}.

{% else %}

Not logged in. Log in

{% endif %}
DBSC session
{% if request.dbsc.session_id %}{{ request.dbsc.session_id }}{% else %}none (not registered){% endif %}
Bound cookie
{% if request.dbsc.bound %}valid{% elif request.dbsc.session_id %}missing / invalid: request treated as anonymous{% else %}n/a{% endif %}
{% if binding %}
Algorithm
{{ binding.algorithm }}
Key thumbprint
{{ binding.thumbprint }}
Registered
{{ binding.created_at }}
Last refresh
{{ binding.last_refreshed_at|default:"never" }}
User agent
{{ binding.user_agent }}
{% endif %}
{% if user.is_authenticated or request.dbsc.session_id %}

{% csrf_token %}
{% csrf_token %}

The bound cookie lives 60 seconds. After it expires (or you expire it), Chrome should refresh it by signing a challenge with its device-bound key before the next request reaches the server. Watch the Application → Device Bound Sessions panel and the network log in DevTools.

The same state as JSON: /status/

{% endif %} {% endblock %}