{# # Handles the display of the scope authorization for the oauth2 form. # # @package OpenEMR # @link http://www.open-emr.org # @author Jerry Padgett # @author Stephen Nielson # @copyright Copyright (c) 2020 Jerry Padgett # @copyright Copyright (c) 2023 Discover and Change, Inc. # @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 #} {% extends "oauth2/oauth2-base.html.twig" %} {% block title %}{{ "OpenEMR Authorization"|xlt }}{% endblock %} {% block content %} {# include the original contents page #}
{% block form_header %}{% endblock %}
{% block clientHeader %}

{{ "Authorizing for Application"|xlt }} {{ client.name|text }}

{% endblock %}
{% block scopesContainer %} {% block resourceScopesContainer %}
{{ "Grant this application access to do the following"|xlt }}

{% block resourcePermissions %}
{{ "Resource Permissions"|xlt }}
{% for resource,scopeCollection in scopesByResource %} {% endfor %}
{% endblock %} {% block otherPermissions %}
{{ "Other Permissions"|xlt }}
{% for scope,description in otherScopes %} {% endfor %} {% for scope in hiddenScopes %} {% endfor %}
{% endblock %}
{% endblock %} {% block claimsContainer %}
{{ "Identity Information Requested"|xlt }}

{{ "This application is requesting access to the following information about you"|xlt }}

    {% for key,value in claims %} {% if key == 'fhirUser' %}
  • {{ "Permission to retrieve information about the current logged-in user"|xlt }} {{ userAccount.firstName|default("")|text }} {{ userAccount.lastName|default("")|text }}
  • {% else %}
  • {{ key|text }}: {{ value|text }}
  • {% endif %} {% endfor %}
{% endblock %} {% endblock %}
{% block offlineFooter %} {% if offlineRequested %}

{{ "This application has requested offline access to your data. This permission will allow the data you authorize below to be accessed for an extended period of time"|xlt }}

{{ "Offline access end date"|xlt }} {{ offline_access_date|text}}

{{ "If you do not want to allow this application to have offline access to your data, uncheck the Offline Access permission"|xlt }}

{% endif %}
{% endblock %} {% block csrf %} {% endblock %} {% block form_controls %}
{% block form_buttons %}{% endblock %}
{% endblock %} {% block form_footer %}{% endblock %}
{% endblock %}