{% extends "interface/smart/admin-client/base.html.twig" %} {% block title %}{{ "Client Registrations"|xlt }}{% endblock %} {% block contents %} < {{ "Back to Client List"|xlt }}

{{ "Edit"|xlt }} {{ client.getName()|text }}
{% if allowSkipAuthSetting %} {% if skipAuthorizationFlow %} {{ "Enable EHR Launch Authorization Flow"|xlt }} {% else %} {{ "Disable EHR Launch Authorization Flow"|xlt }} {% endif %} {% endif %} {% if isEnabled %} {{ "Disable Client"|xlt }} {% else %} {{ "Enable Client"|xlt }} {% endif %}

{% if requestMessage %}
{{ requestMessage|text }}
{% endif %} {% if not isEnabled %}
{{ "This client is currently disabled"|xlt }}
{% endif %}
{% for key,setting in formValues %} {% if setting.type == 'text' %} {% include "interface/smart/admin-client/partials/text-input.html.twig" with {key: key, setting: setting} %} {% elseif setting.type == 'textarea' %} {% include "interface/smart/admin-client/partials/textarea.html.twig" with {key: key, setting: setting} %} {% elseif setting.type == 'checkbox' %} {% include "interface/smart/admin-client/partials/checkbox.html.twig" with {key: key, setting: setting} %} {% endif %} {% endfor %}
    {% for scope in scopes %}
  • {{ scope|text }}
  • {% endfor %}

{{ "Authenticated API Users"|xlt }}


{% if trustedUsers|length <= 0 %}
{{ "No authorized users found for this client"|xlt }}
{% endif %} {% for trustedUser in trustedUsers %}

{{ trustedUser.user.display_name|text }} {{ "Revoke User"|xlt }}

{{ "Type"|xlt }}
{{ "UUID"|xlt }}
{{ "Name/Username"|xlt }}
{{ "Date"|xlt }}
{{ "Persist Login"|xlt }}
{{ "Grant Type"|xlt }}
{{ trustedUser.user.user_type|text }}
{{ trustedUser.user.user_id|text }}
{{ trustedUser.user.display_name|text }}
{{ trustedUser.time|text }}
{{ trustedUser.persist_login|text }}
{{ trustedUser.grant_type|text }}

{{ "Access Tokens"|xlt }}


{{ "Token"|xlt }}
{{ "Expiry"|xlt }}
{{ "Scopes"|xlt }}
{{ "Action"|xlt }}
{% if trustedUser.user.accessTokens|length <= 0 %}
{{ "No active access tokens found"|xlt }}
{% endif %} {% if trustedUser.user.accessTokens|length > 0 %} {% for accessToken in trustedUser.user.accessTokens %}
{{ accessToken.tokenObj.token|text }}
{{ accessToken.tokenObj.expiry|text }}
    {% for scope in accessToken.tokenObj.scopes %}
  • {{ scope|text }}
  • {% endfor %}
{% endfor %} {% endif %}

{{ "Refresh Tokens"|xlt }}


{{ "Token"|xlt }}
{{ "Expiry"|xlt }}
{{ "Action"|xlt }}
{% if trustedUser.user.refreshTokens|length <= 0 %}
{{ "No active refresh tokens found"|xlt }}
{% endif %} {% if trustedUser.user.refreshTokens|length > 0 %} {% for refreshToken in trustedUser.user.refreshTokens %}
{{ refreshToken.tokenObj.token|text }}
{{ refreshToken.tokenObj.expiry|text }}
{% endfor %} {% endif %}
{% endfor %}
{% if client.hasDSI() %}

{{ "Decision Support Intervention Services"|xlt }}

{% include 'interface/smart/admin-client/partials/_external-cdr-list.html.twig' with {services: services } %} {# {% include 'interface/smart/admin-client/_external-cdr-service-summary.html.twig' with {service: client, saveUrl: dsiSaveUrl} %}#}
{% endif %}
{% endblock %}