{% extends 'base.html' %} {% block title %}OAuth Debug Information{% endblock %} {% block content %}

OAuth Debug Information

Configuration

USE_HTTPS {{ config.USE_HTTPS }}
PREFERRED_URL_SCHEME {{ config.PREFERRED_URL_SCHEME }}

Helper-Generated URLs

{% for name, url in helper_generated_urls.items() %} {% endfor %}
Endpoint URL
{{ name }} {{ url }}

Direct url_for URLs

{% for name, url in direct_url_for_urls.items() %} {% endfor %}
Endpoint URL
{{ name }} {{ url }}

Request Information

URL {{ request_info.url }}
Host {{ request_info.host }}
Scheme {{ request_info.scheme }}
Headers
{% for header, value in request_info.headers.items() %}
{{ header }}
{{ value }}
{% endfor %}

This page shows debug information for OAuth redirect URLs. It helps verify that the proper URL scheme (HTTP/HTTPS) is being used.

To configure HTTPS, set USE_HTTPS=True in your .env file when running behind a reverse proxy that handles SSL termination.

Tips for debugging:

  • Check if the X-Forwarded-Proto header is set to "https" by your reverse proxy
  • Verify that helper-generated URLs match your expected protocol
  • If running behind Traefik, ensure it's configured to set the proper headers
{% endblock %}