{% extends "base.html" %} {% block title %}Test Client Launch - {{ site_name }}{% endblock %} {% block content %}

Test SMART Client Launch

Select a registered application to test its SMART on FHIR launch or register a test app.

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %} {% if smart_config %}
SMART Configuration
{{ smart_config | tojson(indent=2) }}
                        
{% else %}

Could not load SMART configuration.

{% endif %}
{{ form.hidden_tag() }}
{{ form.client_id.label(class="form-label") }} Choose an app to test its OAuth2 flow. {% if form.client_id.errors %}
{% for error in form.client_id.errors %}{{ error }}{% endfor %}
{% endif %}
{{ form.response_mode.label(class="form-label") }}
{% for subfield in form.response_mode %}
{{ subfield(class="form-check-input") }} {{ subfield.label(class="form-check-label") }}
{% endfor %}
{{ form.submit(class="btn btn-primary btn-lg") }} Register Test App Cancel
{% if response_data %}
Test Response:
{{ response_data | tojson(indent=2) }}
                        
{% endif %}
{% endblock %}