'django.contrib.admin',
'django.contrib.admindocs',
+ 'cas_provider',
+ 'cas_consumer',
'explorer',
'toolbar',
'api',
],
}
+# django-cas-provider
+LOGIN_URL = '/cas/login/'
+LOGOUT_URL = '/cas/logout/'
+
# Python logging settings
import logging
--- /dev/null
+{% extends "base.html" %}
+
+{% block title %}
+Login
+{% endblock %}
+
+{% block maincontent %}
+ <form action='.' method='post'>
+ <fieldset>
+ <legend>Log in to your account</legend>
+ {% if errors %}
+ <ul>
+ {% for error in errors %}
+ <li>{{ error|escape }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ <table style="border: none;">
+ {{ form.as_table }}
+ </table>
+ <p><input type="submit" value="Login"/></p>
+ </fieldset>
+ </form>
+{% endblock %}
--- /dev/null
+{% extends "base.html" %}
+
+{% block title %}
+Logged out
+{% endblock %}
+
+{% block maincontent %}
+ <h3>Logged out</h3>
+
+ <p>You have successfully logged out. To ensure that you are logged out of all services, please close your browser.</p>
+ {% if url %}<p><a href="{{ url }}">Click here</a> to return to {{ url }}</p>{% endif %}
+{% endblock %}
# Our über-restful api
url(r'^api/', include('api.urls') ),
+
+ # django-cas-provider
+ url(r'^cas/', include('cas_provider.urls')),
)