{% extends "layout.html" %} {% set current_step = 2 %} {% from "_form.html" import render_form %} {% macro client_key_card(key, from_env) %}

{% trans %}Client key{% endtrans %}

{% trans %}The client signs its token requests with this key (private_key_jwt).{% endtrans %}

{% trans %}Key:{% endtrans %} {{ key.description }}
kid: {{ key.kid }}
{% trans %}Algorithm:{% endtrans %} {{ key.alg }}
jwks_uri: {{ key.jwks_uri }}

{% if not from_env %}

{% trans %}Download the private key{% endtrans %}
{% trans %}To replay requests with curl or another client. Anyone with this file can act as the client.{% endtrans %}

{% trans %}The key lives in your session. Forgetting the client, or the end of the session, deletes it. The jwks_uri then answers 404, and the provider can no longer check the client.{% endtrans %}

{% endif %}
{% endmacro %} {% block title %}{% trans %}Configure OAuth Client{% endtrans %}{% endblock %} {% macro client_summary(oauth_config, registered) %}
{% trans %}Client ID:{% endtrans %}
{{ oauth_config.client_id }}
{% trans %}Type:{% endtrans %}
{% if oauth_config.token_endpoint_auth_method == "none" %}{% trans %}Public{% endtrans %}{% else %}{% trans %}Confidential{% endtrans %}{% endif %}
{% trans %}Token endpoint authentication:{% endtrans %}
{{ oauth_config.token_endpoint_auth_method }}
{% if oauth_config.grant_types %}
{% trans %}Grant types:{% endtrans %}
{% for grant_type in oauth_config.grant_types %} {{ grant_type }} {% endfor %}
{% endif %}
{% trans %}UserInfo response:{% endtrans %}
{% if oauth_config.userinfo_signed_response_alg %} {% trans alg=oauth_config.userinfo_signed_response_alg %}Signed with {{ alg }}{% endtrans %} {% else %} {% trans %}JSON, not signed{% endtrans %} {% endif %}
{% if registered %}
{% trans %}Registration:{% endtrans %}
{% trans %}Dynamic (RFC 7591), managed with RFC 7592{% endtrans %}
{% endif %}
{% endmacro %} {% block content %} {% if locked %}

{% trans %}Client{% endtrans %}

{{ client_summary(oauth_config, registered=false) }}

{% trans %}This client is set via environment variables and cannot be changed.{% endtrans %}

{% if client_key %} {{ client_key_card(client_key, from_env=true) }} {% endif %} {% elif configured %} {% set registered = g.server_config.registration_access_token and g.server_config.registration_client_uri %}

{% trans %}Client{% endtrans %}

{{ client_summary(oauth_config, registered=registered) }} {% if registered %}

{% trans %}Change client forgets this client and its tokens here, and keeps it at the provider. Unregister client also deletes it at the provider.{% endtrans %}

{% else %}

{% trans %}Change client forgets this client and its tokens.{% endtrans %}

{% endif %}
{% if client_key %} {{ client_key_card(client_key, from_env=false) }} {% endif %} {% else %}

{% trans %}Choose a configuration method{% endtrans %}

{% trans display_name=g.server_config.display_name %}Register the client of the playground at the {{ display_name }}, in one of these ways:{% endtrans %}

{% trans %}Dynamic registration{% endtrans %}

{% trans %}The playground asks the provider to create the client (RFC 7591). You choose the client type and the grant types.{% endtrans %}

{% trans %}Manual configuration{% endtrans %}

{% trans display_name=g.server_config.display_name %}You create the client at the {{ display_name }}, then enter its settings here.{% endtrans %}

{% endif %} {% endblock %} {% block scripts %} {% endblock %}