From 0f8268c93e6210d368f9dcd1900274871a9eacdf Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 30 Apr 2017 09:16:55 +0200 Subject: Add client_credentials as grant_type Therefore, username and password are no longer needed Signed-off-by: Thomas Citharel Allow to have global clients, auth through direct token or auth code and bring scopes Signed-off-by: Thomas Citharel fix review Signed-off-by: Thomas Citharel remove redirect uri requirement on specific clients add back password and depreciate it enforce state Signed-off-by: Thomas Citharel Allow apps to register themselves A handful of changes Signed-off-by: Thomas Citharel change timeout values Signed-off-by: Thomas Citharel set access_token lifetime to 1 year and double for refresh_token Signed-off-by: Thomas Citharel --- .../views/themes/common/Developer/index.html.twig | 142 +++++++++++++++++---- 1 file changed, 114 insertions(+), 28 deletions(-) (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig index 528b055c..a41e64f7 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig @@ -1,67 +1,153 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{{ 'developer.page_title'|trans }}{% endblock %} +{% block title %}{{ 'apps.page_title'|trans }}{% endblock %} {% block content %}
-
-

{{ 'developer.welcome_message'|trans }}

+

{{ 'apps.featured.title'|trans }}

+ +
+
    +
  • + +
    +

    Android

    +
    For all Android 4.4+ devices
    +

    + + Get it on Google Play + + + Get it on F-Droid + +

    +
    +
  • +
  • + +
    +

    iOS

    +
    For your iPhones and iPads
    +

    + + Get it on the AppStore + +

    +
    +
  • +
  • + +
    +

    Windows

    +
    Available on Windows Phones and Windows 10
    +

    + + Get it on the Windows Store + +

    +
    +
  • +
  • + +
    +

    Browser Extension

    +
    Available on Firefox, Chrome and Opera
    +

    + + Get it on the Firefox Addons Website + + + Get it on the Firefox Addons Website + + + Get it on the Firefox Addons Website + +

    +
    +
  • +
+
-

{{ 'developer.documentation'|trans }}

+

{{ 'apps.list.title'|trans }}

-
    -
  • {{ 'developer.how_to_first_app'|trans }}
  • -
  • {{ 'developer.full_documentation'|trans }}
  • -
  • {{ 'developer.list_methods'|trans }}
  • +
      + {% for app in apps %} +
    • + {% if app.client.image %} + + {% endif %} + {{ app.client.name }} +

      {{ app.client.description }}

      +
      + {% for scope in app.scope | split(' ') %} +
      {{ scope }}
      + {% endfor %} +
      +

      {{ 'apps.app.created_at' | trans({'%date%': app.client.createdAt}) }}

      + grade +
    • + {% endfor %}
    -

    {{ 'developer.clients.title'|trans }}

    +

    {{ 'apps.old_clients.title'|trans }}

    -

    {{ 'developer.existing_clients.title'|trans }}

    +
    {{ 'apps.old_clients.list'|trans }}
    {% if clients %}
      {% for client in clients %}
    • -
      {{ client.name }} - #{{ client.id }}
      +
      {{ client.name }}
      - - + + - + - - - - - - - -
      {{ 'developer.existing_clients.field_id'|trans }}{{ client.clientId }}{{ 'apps.old_clients.field_id'|trans }}{{ client.id }}_{{ client.randomId }}
      {{ 'developer.existing_clients.field_secret'|trans }}{{ 'apps.old_clients.field_secret'|trans }} {{ client.secret }}
      {{ 'developer.existing_clients.field_uris'|trans }}{{ client.redirectUris|json_encode() }}
      {{ 'developer.existing_clients.field_grant_types'|trans }}{{ client.allowedGrantTypes|json_encode() }}

      - {{ 'developer.remove.warn_message_1'|trans({'%name%': client.name }) }}
      - {{ 'developer.remove.warn_message_2'|trans({'%name%': client.name }) }}
      - {{ 'developer.remove.action'|trans({'%name%': client.name }) }} + {{ 'apps.remove.warn_message_1'|trans({'%name%': client.name }) }}
      + {{ 'apps.remove.warn_message_2'|trans({'%name%': client.name }) }}
      + {{ 'apps.remove.action'|trans({'%name%': client.name }) }}

      +
    • {% endfor %}
    {% else %} - {{ 'developer.existing_clients.no_client'|trans }} + {{ 'apps.old_clients.no_client'|trans }} {% endif %} -
+

{{ 'apps.documentation.title'|trans }}

+ +
-- cgit v1.2.3