{% extends "rest/_layouts/cp" %} {% set title = "REST"|t %} {% set selectedTab = 'authentications' %} {% set content %} {% if checkDependencies %} {% for authenticationProvider in authenticationProviders %} {% set oauthProvider = craft.oauth.getProvider(authenticationProvider.oauthProviderHandle, false) %} {% set authentication = null %} {% for item in authentications %} {% if authenticationProvider.handle == item.authenticationHandle %} {% set authentication = item %} {% endif %} {% endfor %} {% endfor %}
{{ "Name"|t }} {{ "Authentication Handle"|t }} {{ "Status"|t }} {{ "OAuth Scope"|t }} {{ "OAuth Authorization Options"|t }} {{ "OAuth Settings"|t }}
{% if authenticationProvider.iconUrl %} {% endif %} {% if oauthProvider.isConfigured %} {{ authenticationProvider.name }} {% else %} {{ authenticationProvider.name }} {% endif %} {{ authenticationProvider.handle }} {% if oauthProvider.isConfigured %} {% if authentication and authentication.token %} {{ "Connected"|t }} {% else %} {{ "Not connected"|t }} {% endif %} {% else %} {{ "OAuth provider not configured"|t }} {% endif %} {{ '{total} permissions'|t({ total: authenticationProvider.scope|length }) }} {{ '{total} options'|t({ total: authenticationProvider.authorizationOptions|length }) }}
{% else %}

{{ "REST authentications require the OAuth plugin for Craft CMS."|t }}

{{ "Configure"|t }}
{% endif %} {% endset %}