{% extends "_layouts/cp" %} {% import "_includes/forms" as forms %} {% set title = provider.name~" Console"|t %} {% set crumbs = [ { label: "OAuth"|t, url: url('oauth') }, { label: "Console"|t, url: url('oauth/console') } ] %} {% set content %} {% if provider.isConfigured %} {% if token %} {% set account = provider.getResourceOwner(token) %}

{{'Connected'|t}}

{{'You are authenticated to {provider} with the following account'|t({provider:provider.name})}} :

{{ dump(account) }}

{{'Disconnect'|t}}

{% else %}

{{'Not connected'|t}}

{{'Test that the connection with this provider can be made.'|t}}

{{"Connect"|t}}

{% endif %} {% else %} {{ "Not configured"|t }} {% endif %} {% endset %}