2021-10-28 13:24:34 +00:00
|
|
|
{% extends theme('base.html') %}
|
2020-08-17 09:53:30 +00:00
|
|
|
|
|
|
|
{% block content %}
|
2021-12-20 22:57:27 +00:00
|
|
|
<div class="ui segment">
|
|
|
|
{% if client.oauthLogoURI %}
|
|
|
|
<img class="ui centered tiny image" src="{{ client.oauthLogoURI }}" alt="{{ client.oauthClientName }}">
|
|
|
|
{% endif %}
|
2020-08-14 11:18:08 +00:00
|
|
|
|
2021-12-20 22:57:27 +00:00
|
|
|
<h2 class="ui header">{{ gettext('The application %(name)s is requesting access to:', name=client.oauthClientName) }}</h3>
|
2020-08-14 11:18:08 +00:00
|
|
|
|
2021-12-20 22:57:27 +00:00
|
|
|
<div class="ui divided items">
|
|
|
|
{% for claim in grant.request.scope.split(" ") %}
|
|
|
|
{% if claim not in ignored_claims %}
|
|
|
|
<div class="item">
|
|
|
|
{% if claim in claims %}
|
|
|
|
<div>
|
|
|
|
<i class="{{ claims[claim][0] }} large icon"></i>
|
|
|
|
{{ claims[claim][1] }}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="ui tiny image">
|
|
|
|
<i class="huge user icon"></i>
|
|
|
|
{{ claim }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2020-10-29 14:28:19 +00:00
|
|
|
</div>
|
2020-08-17 15:49:49 +00:00
|
|
|
|
2021-12-20 22:57:27 +00:00
|
|
|
<div class="ui center aligned container">
|
|
|
|
{{ gettext('You are logged id as: %(name)s', name=user.name) }}
|
|
|
|
</div>
|
2020-11-06 10:57:21 +00:00
|
|
|
|
2021-12-20 22:57:27 +00:00
|
|
|
<div class="ui center aligned container">
|
|
|
|
<form action="{{ request.url }}" method="post">
|
|
|
|
<div class="ui stackable buttons">
|
|
|
|
<button name="answer" type="submit" class="ui negative button" value="deny" id="deny">
|
|
|
|
{% trans %}Deny{% endtrans %}
|
|
|
|
</button>
|
|
|
|
<button name="answer" type="submit" class="ui button" value="logout" id="logout">
|
|
|
|
{% trans %}Switch user{% endtrans %}
|
|
|
|
</button>
|
|
|
|
<button name="answer" type="submit" class="ui primary button" value="accept" id="accept">
|
|
|
|
{% trans %}Accept{% endtrans %}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2020-08-17 15:49:49 +00:00
|
|
|
</div>
|
2020-08-17 09:53:30 +00:00
|
|
|
{% endblock %}
|