{% extends "djust_admin/base.html" %} {% block breadcrumb_items %} / OAuth Providers {% endblock %} {% block content %}

{{ title }}

{% if allauth_installed %} django-allauth active {% else %} django-allauth not installed {% endif %}
{% if not allauth_installed %}

OAuth not configured

Install django-allauth and add it to INSTALLED_APPS to enable OAuth providers.

pip install "djust-auth[oauth]"
{% else %}

{{ total_linked }}

Total Linked Accounts

{{ total_oauth_users }}

OAuth Users

{{ oauth_percentage }}%

Users Using OAuth

{% if providers %}
{% for provider in providers %}
{{ provider.icon }}

{{ provider.name }}

{{ provider.id }}

{% if provider.has_credentials %} Configured {% else %} Missing credentials {% endif %}
Linked accounts: {{ provider.account_count }}
Active (30d): {{ provider.active_users_30d }}
Last linked: {% if provider.last_linked %}{{ provider.last_linked|date:"M d, Y" }}{% else %}Never{% endif %}
Callback URL: {{ provider.callback_url }}

Current Configuration

{% for item in provider.checklist %}
{% if item.1 %} {% else %} {% endif %} {{ item.0 }}
{% endfor %}
{% if provider.masked_client_id %}
Client ID: {{ provider.masked_client_id }}
{% endif %} {% if provider.scopes %}
Scopes:
{% for scope in provider.scopes %} {{ scope }} {% endfor %}
{% if provider.scope_misplaced %}
SCOPE is inside APP — move it to the provider level (see snippet)
{% endif %} {% endif %} {% if provider.extra_settings %}
Other:
{% for key, val in provider.extra_settings.items %} {{ key }}={{ val }} {% endfor %}
{% endif %}

Settings

{{ provider.settings_snippet }}
{% if provider.console_url %} {{ provider.console_label }} {% endif %}
{% endfor %}

Configuration

Set provider credentials in SOCIALACCOUNT_PROVIDERS in your settings, or via environment variables. Use the callback URLs above when configuring each provider's app.

{% else %}

No OAuth provider apps are in INSTALLED_APPS. Add provider apps like allauth.socialaccount.providers.github.

{% endif %} {% endif %}
{% endblock %}