initial commit
This commit is contained in:
6
cas_server/templates/cas_server/base.html
Normal file
6
cas_server/templates/cas_server/base.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'bootstrap3/bootstrap3.html' %}
|
||||
{% block bootstrap3_title %}{% block title %}{% endblock %}{% endblock %}
|
||||
|
||||
{% load url from future %}
|
||||
|
||||
{% load bootstrap3 %}
|
20
cas_server/templates/cas_server/logged.html
Normal file
20
cas_server/templates/cas_server/logged.html
Normal file
@ -0,0 +1,20 @@
|
||||
{% extends "cas_server/base.html" %}
|
||||
{% load bootstrap3 %}
|
||||
{% load staticfiles %}
|
||||
{% block bootstrap3_extra_head %}
|
||||
<link href="{% static "cas_server/login.css" %}" rel="stylesheet">
|
||||
{% endblock %}
|
||||
{% block bootstrap3_content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-6">
|
||||
{% bootstrap_messages %}
|
||||
<div class="alert alert-success" role="alert">Logged</div>
|
||||
{% bootstrap_button 'Arrêter' size='lg' button_class="btn-danger btn-block" href="logout" %}
|
||||
</div>
|
||||
<div class="col-md-3"></div>
|
||||
</div>
|
||||
</div> <!-- /container -->
|
||||
{% endblock %}
|
||||
|
24
cas_server/templates/cas_server/login.html
Normal file
24
cas_server/templates/cas_server/login.html
Normal file
@ -0,0 +1,24 @@
|
||||
{% extends "cas_server/base.html" %}
|
||||
{% load bootstrap3 %}
|
||||
{% load staticfiles %}
|
||||
{% block bootstrap3_extra_head %}
|
||||
<link href="{% static "cas_server/login.css" %}" rel="stylesheet">
|
||||
{% endblock %}
|
||||
{% block bootstrap3_content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-6">
|
||||
{% bootstrap_messages %}
|
||||
<form class="form-signin" method="post">
|
||||
<h2 class="form-signin-heading">Merci de se connecter</h2>
|
||||
{% csrf_token %}
|
||||
{% bootstrap_form form %}
|
||||
{% bootstrap_button 'Connection' size='lg' button_type="submit" button_class="btn-block"%}
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-md-3"></div>
|
||||
</div>
|
||||
</div> <!-- /container -->
|
||||
{% endblock %}
|
||||
|
5
cas_server/templates/cas_server/proxy.xml
Normal file
5
cas_server/templates/cas_server/proxy.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
|
||||
<cas:proxySuccess>
|
||||
<cas:proxyTicket>{{ticket}}</cas:proxyTicket>
|
||||
</cas:proxySuccess>
|
||||
</cas:serviceResponse>
|
19
cas_server/templates/cas_server/serviceValidate.xml
Normal file
19
cas_server/templates/cas_server/serviceValidate.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
|
||||
<cas:authenticationSuccess>
|
||||
<cas:user>{{username}}</cas:user>
|
||||
<cas:attributes>
|
||||
{% for key, value in attributes %} <cas:{{key}}>{{value}}</cas:{{key}}>
|
||||
{% endfor %}
|
||||
</cas:attributes>
|
||||
{% if proxyGrantingTicket %}
|
||||
<cas:proxyGrantingTicket>{{proxyGrantingTicket}}</cas:proxyGrantingTicket>
|
||||
{% endif %}
|
||||
{% if proxies %}
|
||||
<cas:proxies>
|
||||
{% for proxy in proxies %}
|
||||
<cas:proxy>{{proxy}}</cas:proxy>
|
||||
{% endfor %}
|
||||
</cas:proxies>
|
||||
{% endif %}
|
||||
</cas:authenticationSuccess>
|
||||
</cas:serviceResponse>
|
5
cas_server/templates/cas_server/serviceValidateError.xml
Normal file
5
cas_server/templates/cas_server/serviceValidateError.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
|
||||
<cas:authenticationFailure code="{{code}}">
|
||||
{{msg}}
|
||||
</cas:authenticationFailure>
|
||||
</cas:serviceResponse>
|
20
cas_server/templates/cas_server/warn.html
Normal file
20
cas_server/templates/cas_server/warn.html
Normal file
@ -0,0 +1,20 @@
|
||||
{% extends "cas_server/base.html" %}
|
||||
{% load bootstrap3 %}
|
||||
{% load staticfiles %}
|
||||
{% block bootstrap3_extra_head %}
|
||||
<link href="{% static "cas_server/login.css" %}" rel="stylesheet">
|
||||
{% endblock %}
|
||||
{% block bootstrap3_content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-6">
|
||||
{% bootstrap_messages %}
|
||||
<div class="alert alert-warning" role="alert">Une demande d'authentification a été émise pour le service {{service}}</div>
|
||||
{% bootstrap_button 'Se connecter au service' size='lg' button_class="btn-primary btn-block" href=service_ticket_url %}
|
||||
</div>
|
||||
<div class="col-md-3"></div>
|
||||
</div>
|
||||
</div> <!-- /container -->
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user