django-oidc-provider/openid_provider/templates/openid_provider/authorize.html
2014-12-19 12:27:43 -03:00

47 lines
No EOL
1.5 KiB
HTML

{% extends "openid_provider/base.html" %}
{% load i18n %}
{% block content %}
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Request for Permission</h3>
</div>
<div class="panel-body">
<p>Client {{ client.name }} would like to access this information of you ...</p>
<form method="post" action="{% url 'openid_provider:authorize' %}">
{% csrf_token %}
<input name="client_id" type="hidden" value="{{ params.client_id }}" />
<input name="redirect_uri" type="hidden" value="{{ params.redirect_uri }}" />
<input name="response_type" type="hidden" value="{{ params.response_type }}" />
<input name="scope" type="hidden" value="{{ params.scope }}" />
<input name="state" type="hidden" value="{{ params.state }}" />
<ul class="list-group">
{% for scope in params.scope.split %}
{% if scope != 'openid' %}
<li class="list-group-item">{{ scope | capfirst }}</li>
{% endif %}
{% endfor %}
</ul>
<div class="btn-group btn-group-justified" role="group" aria-label="Justified button group">
<div class="btn-group" role="group">
<input type="submit" class="btn btn-danger" value="Decline" />
</div>
<div class="btn-group" role="group">
<input name="allow" type="submit" class="btn btn-success" value="Authorize" />
</div>
</div>
</form>
</div>
</div>
</div>
</div>
{% endblock %}