{% extends "account/base.html.twig" %} {% block title %} {{ "Client application" | trans }} {% endblock %} {% set selected = "" %} {% block javascript %} {{ parent() }} {% endblock %} {% block content_account %}

{{ "Application" | trans }} - {{ application.getName() }}

{{ application.getDescription() }}

{{ "settings OAuth" | trans }}

{% if application.getType() == constant("DESKTOP_TYPE", application) %} {% else %} {%endif%} {% if application.getType() == constant("WEB_TYPE", application) %} {% endif %}
Client ID {{ application.getClientId() }}
Client Secret {{ application.getClientSecret() }}
{{ "URL de callback" | trans }} {{ application.getRedirectUri() }} {{ application.getRedirectUri() }}
Authorize endpoint {{ app["conf"].get("servername") }}api/oauthv2/authorize
Access endpoint {{ app["conf"].get("servername") }}api/oauthv2/token
{{ "Activer le grant_type de type password pour votre application" | trans }}
{{ "Define a webhook URL" | trans }}

{{ "Gives the option to your application to communicate with Phraseanet. This webhook can be used to trigger some actions on your application side." | trans }}

{{ application.getWebhookUrl() }}
{{ "developers:: Webhook active" | trans }}

{{ "Votre token d\'access" | trans }}

{{ "Les paramétres oauth de votre application." | trans }}

{{ "Token" | trans }} {% if not token is none %} {{ token.getOauthToken()|default("") }} {% else %} {{ "Le token n\'a pas encore ete genere" | trans }} {% endif %} {{ "boutton::generer" | trans }}

{{ "developers:: Events trigger this webhook" | trans }}

{{ "developers:: Select events to trigger this webhook url" | trans }}

{% for webhook_type, webhooks in webhook_event_list %} {% endfor %}
{{ "developers:: Events type" | trans }} {{ "developers:: Events name" | trans }}
{{ webhook_type }}
    {% for webhook_name, webhook_description in webhooks %}
  • {% endfor %}
{% if deliveries | length > 0 %}

{{ "Derniers envois" | trans }}

{{ "Résultats des derniers envois effectués pour cette application" | trans }}

{% for delivery in deliveries %} {% endfor %}
  ID Type Date Status code
{{ delivery.isDelivered ? 'OK' : 'KO' }} {{ delivery.payload ? delivery.payload.id : '-' }} {{ delivery.webhookEvent.type }} {{ delivery.created | date }} {{ delivery.payload ? delivery.payload.statusCode : '-' }}
{% endif %}
{% endblock %}