{% extends "_layout.html.j2" %} {% import "_icons.html.j2" as icons %} {%- block head -%} {%- endblock -%} {%- block title -%} Authorize client {%- endblock -%} {%- block content -%} {% let client_name = client_metadata.client_name.as_deref().unwrap_or("Unknown application") %}
{{ user_id }}. Switch accounts
{{ client_name }} ({{ client_metadata.client_uri.domain().unwrap() }}) {% if let Some(existing_session_info) = existing_session_info %} would like temporary additional permissions to: {{ scopes }} {{ client_name }} already has permission to: {{ ClientScopes { scopes: existing_session_info.scopes() } }} {% else %} would like your permission to: {{ scopes }} {% endif %}
{% if scopes.scopes.contains(&OAuthClientScope::ServerAdministration) %}⚠️ {{ client_name }} wants to be able to administrate your homeserver. If it is untrustworthy, it could use its administrator powers to cause severe damage to your homeserver's users and rooms. Make sure you trust it fully before you continue.
{% endif %} {% match (&client_metadata.policy_uri, &client_metadata.tos_uri) %} {% when (Some(policy_uri), Some(tos_uri)) %}{{ client_name }}'s policies and terms of service apply.
{% when (Some(policy_uri), None) %}{{ client_name }}'s policies apply.
{% when (None, Some(tos_uri)) %}{{ client_name }}'s terms of service apply.
{% when (None, None) %}Make sure you trust {{ client_name }} with access to your data.
{% endmatch %}