Commit 1c417c61 authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos

Added a management informations page

parent 8885ef38
......@@ -968,13 +968,11 @@ def user_login(request):
if not mail:
error_mail = True
if error_username:
error = _("Your idP should release the HTTP_EPPN attribute towards this service<br>")
if error_orgname:
error = error + _("Your idP should release the HTTP_SHIB_HOMEORGANIZATION attribute towards this service<br>")
error = _("Your idP should release the eduPersonPrincipalName attribute towards this service<br>")
if error_entitlement:
error = error + _("Your idP should release an appropriate HTTP_SHIB_EP_ENTITLEMENT attribute towards this service<br>")
error = error + _("Your idP should release an appropriate eduPersonEntitlement attribute towards this service<br>")
if error_mail:
error = error + _("Your idP should release the HTTP_SHIB_INETORGPERSON_MAIL attribute towards this service")
error = error + _("Your idP should release the mail attribute towards this service")
if error_username or error_orgname or error_entitlement or error_mail:
return render_to_response('status.html', {'error': error, "missing_attributes": True},
context_instance=RequestContext(request))
......@@ -1112,6 +1110,12 @@ def world(request):
return render_to_response('front/world.html',
context_instance=RequestContext(request))
@never_cache
def managementPage(request):
return render_to_response('front/management.html',
context_instance=RequestContext(request))
def getPoints():
points = cache.get('points')
if points:
......
......@@ -76,7 +76,7 @@ body {
{% block topmenu %}
<ul class="nav">
<li {% block hometop %}{% endblock %}>
<a href="{% url index %}">Home</a>
<a href="{% url index %}">{% trans "Home" %}</a>
</li>
<li {% block faqtop %}{% endblock %}>
<a href="/faq/{{LANGUAGE_CODE}}/">FAQ</a>
......@@ -124,7 +124,7 @@ body {
<li {% block whatis %}{% endblock %}><a href="/what/{{LANGUAGE_CODE}}/">{% trans "The service" %}</a></li>
<li {% block faq %}{% endblock %}><a href="/faq/{{LANGUAGE_CODE}}/">FAQ</a></li>
<li class="nav-header">{% trans "INSTITUTIONS" %}</li>
<li {% block mgmt %}{% endblock %}><a href="{% url manage %}">{% trans "Management" %}</a></li>
<li {% block mgmt %}{% endblock %}><a href="{% url managementPage %}">{% trans "Management" %}</a></li>
<li class="nav-header">{% trans "SERVICE" %}</li>
<li {% block closest %}{% endblock %}><a href="{% url geolocate %}" target="about:blank()">{% trans "Closest eduroam" %}</a></li>
<li {% block world %}{% endblock %}><a href="{% url world %}">{% trans "World eduroam" %}</a></li>
......
{% extends "base.html" %}
{% load i18n %}
{% block title %}eduroam@Greece{% endblock %}
{% block homepage %}{% endblock %}
{% block hometop %}{% endblock %}
{% block mgmt %}class="active"{% endblock %}
{% block subcontent %}
<h4>{% trans "Management" %}</h4>
<hr>
<div class="span6">
<p>{% blocktrans %}If you comply with the following, you can log in to eduroam management by clicking Manage below or by selecting Manage from the top menu.{% endblocktrans %}</p>
<p style="text-align: center;"><a href="{% url manage %}" class="btn btn-info" >{% trans "Manage" %}</a></p>
<p>{% blocktrans %}Eduroam management platform provides the institutions' eduroam admins with an administrative interface
over their institution eduroam parameters.{% endblocktrans %}</p>
<p>{% blocktrans %}Authentication and authorization are carried out via Shibboleth{% endblocktrans %}<img src="/static/img/shibboleth_logo_res.png"></p>
<p>{% blocktrans %}Thus, the institution eduroam admins must release the following attributes
towards the eduroam SP{% endblocktrans %} {% trans "according to" %} <a href="http://aai.grnet.gr/documentation">{% trans "policy and procedures documentation" %}</a> {% trans "of GRNET AAI federation" %}:
<table class="table table-bordered">
<thead><tr><th>{% trans "Attribute" %}</th><th>{% trans "Info" %}</th></tr></thead>
<tbody>
<tr class="success"><td>eduPersonPrincipalName</td><td>{% trans "Provides a unique username for the administrator of eduroam platform" %}</td></tr>
<tr class="success"><td>eduPersonEntitlement</td><td>{% trans 'Must match a certain pattern eg."urn:mace:eduroam:site:manager" (contact GRNET Helpdesk)' %}</td></tr>
<tr class="success"><td>mail</td><td>{% trans "Provides a valid e-mail address for the administrator" %}</td></tr>
<tr class="info"><td>givenName (optional)</td><td>{% trans "Provides the First Name for the user" %}</td></tr>
<tr class="info"><td>sn (optional)</td><td>{% trans "Provides the Last Name for the user" %}</td></tr>
</tbody>
</table>
</p>
<p>{% blocktrans %}Once your Shibboleth attribute release is setup properly you can move on to your institution eduroam management.{% endblocktrans %}</p>
<p>{% blocktrans %}First, you have to register your account. Registration is performed once, and logging-in is carried out by Shibboleth. If you keep cookies (or until they expire) you will automatically enter the administrative interface on each visit.{% endblocktrans %}</p>
<p>{% blocktrans %}Registration is simple. Select Manage, and (after 2 redirections) provide your idp with your credentials. The platform will check your HTTP_SHIB_EP_ENTITLEMENT attribute. If you pass the check you will be presented with a list of Institutions. Once you select your institution, you will have to be approved by the platform admin. On success, you will receive a confirmation via email.{% endblocktrans %}</p>
<p>{% blocktrans %}From then on, you have access to your institution's eduroam attributes. Apart from serving internal tools automated configuration, these attributes are released towards <a href="http://www.eduroam.org">eduroam.org</a> in a dynamic manner via the {% endblocktrans %}<a href="{% url instxml %}">institution.xml</a>, <a href="{% url realmxml %}">realm.xml</a> and <a href="{% url realmdataxml %}">realm_data.xml</a> {% trans "files" %}.</p>
</div>
{% endblock %}
......@@ -30,12 +30,14 @@ urlpatterns += patterns('edumanage.views',
url(r'^geolocate/?$', 'geolocate', name="geolocate"),
url(r'^closest/?$', 'closest', name="closest"),
url(r'^world/?$', 'world', name="world"),
url(r'^management/?$', 'managementPage', name="managementPage"),
url(r'^worldpoints/?$', 'worldPoints', name="worldPoints"),
url(r'^participants/?$', 'participants', name="participants"),
url(r'^services/allpoints/?$', 'get_all_services', name="get-all-services"),
url(r'^general/institution.xml', "instxml", name="instxml"),
url(r'^general/realm.xml', "realmxml", name="realmxml"),
url(r'^general/realm_data.xml', "realmdataxml", name="realmdataxml"),
url(r'^usage/realm_data.xml', "realmdataxml", name="realmdataxml"),
url(r'^manage/?$', 'manage', name="manage"),
......@@ -47,7 +49,7 @@ urlpatterns += patterns('edumanage.views',
url(r'^manage/services/del/?$', 'del_service', name="del-service"),
url(r'^manage/services/edit/(?P<service_pk>\d+)?$', 'add_services', name="edit-services"),
url(r'^manage/services/points/?$', 'get_service_points', name="get-service-points"),
url(r'^manage/services/allpoints/?$', 'get_all_services', name="get-all-services"),
url(r'^manage/servers/(?P<server_pk>\d+)?$', 'servers', name="servers"),
url(r'^manage/servers/del/?$', 'del_server', name="del-server"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment