{% from "_grant_description.html" import grant_description %} {{ grant_description(grant) }} {% if not grant.advertised %}
{% if grant_types_listed %} {% trans grant_type=grant.label %}The provider does not advertise the {{ grant_type }} grant type. It may reject the request.{% endtrans %} {% else %} {% trans grant_type=grant.label, defaults=default_grant_types|join(", ") %}The metadata of the provider list no grant types, so only the default ones count as advertised: {{ defaults }} (RFC 8414 ยง2). The provider may still support the {{ grant_type }} grant type.{% endtrans %} {% endif %}
{% endif %} {% if not grant.registered %}
{% set registered %}{% for value in registered_grant_types %}{{ value }}{% if not loop.last %}, {% endif %}{% endfor %}{% endset %} {% trans grant_type=grant.label, registered=registered %}This client is not registered for the {{ grant_type }} grant type, only for {{ registered }}. The provider will likely reject the request.{% endtrans %} {% trans %}See the client{% endtrans %}
{% endif %} {% if grant.deprecated %}
{% trans %}The OAuth 2.0 Security Best Current Practice (RFC 9700) advises against this grant type, and the OAuth 2.1 draft removes it. Use it only to test a provider.{% endtrans %}
{% endif %} {% if grant.confidential_client and public_client %}
{% trans %}This grant type is for confidential clients, and this client is public. The provider will likely reject the request.{% endtrans %}
{% endif %} {% include "_grant_" ~ grant.name ~ ".html" %}