{% load socialaccount %}

{% get_providers as socialaccount_providers %}

{% for provider in socialaccount_providers %}
  {% if provider.id == "openid" %}
    {% for brand in provider.get_brands %}
    <a title="{{brand.name}}" 
      class="btn btn-primary bg-{{provider.id}} {{brand.id}} border-0 mb-2" 
      href="{% provider_login_url provider.id openid=brand.openid_url process=process %}"
      ><i class="bi bi-{{provider.id}} mr-2"> {{brand.name}}</a>
    {% endfor %}
  {% endif %}
  <a title="{{provider.name}}" 
    class="btn btn-primary bg-{{provider.id}} border-0 mb-2" 
    href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}"
    ><i class="bi bi-{{provider.id}} mr-2"></i> {{provider.name}}</a>
{% endfor %}
