2023-02-26 21:24:07 +01:00
|
|
|
|
{% extends "base.j2" %}
|
2023-11-15 20:38:51 +01:00
|
|
|
|
{% import 'wtf.j2' as wtf %}
|
2023-02-26 21:24:07 +01:00
|
|
|
|
|
2024-09-15 16:50:25 +02:00
|
|
|
|
|
|
|
|
|
{% block styles %}
|
|
|
|
|
{{super()}}
|
|
|
|
|
<style>
|
|
|
|
|
div.checkbox label { font-weight: normal; }
|
|
|
|
|
</style>
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
2023-02-26 21:24:07 +01:00
|
|
|
|
{% block app_content %}
|
|
|
|
|
<h1>Configuration du Service d'Authentification Central (CAS)</h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="help">
|
2023-02-27 10:20:59 +01:00
|
|
|
|
<p>Le CAS permet d'utiliser un service SSO pour connecter les utilisateurs.</p>
|
2023-02-26 21:24:07 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2023-02-27 10:20:59 +01:00
|
|
|
|
<div class="col-md-8">
|
2023-03-09 11:59:58 +01:00
|
|
|
|
|
2023-03-14 16:28:36 +01:00
|
|
|
|
<form class="form form-horizontal" method="post" enctype="multipart/form-data" role="form">
|
2023-03-09 11:59:58 +01:00
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
{{ wtf.form_errors(form, hiddens="only") }}
|
|
|
|
|
|
|
|
|
|
{{ wtf.form_field(form.cas_enable) }}
|
|
|
|
|
{{ wtf.form_field(form.cas_force) }}
|
2023-09-02 22:49:21 +02:00
|
|
|
|
{{ wtf.form_field(form.cas_allow_for_new_users) }}
|
2024-09-15 16:50:25 +02:00
|
|
|
|
<div class="scobox">
|
|
|
|
|
<div class="scobox-title">Routes CAS</div>
|
|
|
|
|
{{ wtf.form_field(form.cas_server) }}
|
|
|
|
|
{{ wtf.form_field(form.cas_login_route) }}
|
|
|
|
|
{{ wtf.form_field(form.cas_logout_route) }}
|
|
|
|
|
{{ wtf.form_field(form.cas_validate_route) }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scobox">
|
|
|
|
|
{{ wtf.form_field(form.cas_attribute_id) }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scobox">
|
|
|
|
|
<div class="scobox-title">Identifiant utilisateur CAS</div>
|
|
|
|
|
<div class="help explanation">
|
|
|
|
|
Ces paramètres sont utilisés pour déduire
|
|
|
|
|
l'identifiant CAS des utilisateurs ScoDoc au moment de la création ou modification
|
|
|
|
|
de comptes utilisateurs. Pour modifier les comptes existants en masse, il peut être
|
|
|
|
|
pratique de passer par un
|
|
|
|
|
<a class="stdlink" href="{{ url_for('auth.cas_users_import_config') }}">export/import excel</a>.
|
|
|
|
|
</div>
|
|
|
|
|
{{ wtf.form_field(form.cas_uid_from_mail_regexp) }}
|
|
|
|
|
{{ wtf.form_field(form.cas_uid_use_scodoc) }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scobox">
|
|
|
|
|
{{ wtf.form_field(form.cas_edt_id_from_xml_regexp) }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scobox cas_settings">
|
|
|
|
|
<div class="scobox-title">Certificat serveur CAS</div>
|
2023-03-09 11:59:58 +01:00
|
|
|
|
{{ wtf.form_field(form.cas_ssl_verify) }}
|
|
|
|
|
{{ wtf.form_field(form.cas_ssl_certificate_file) }}
|
|
|
|
|
<div class="cas_etat_certif_ssl">Certificat SSL
|
|
|
|
|
{% if cas_ssl_certificate_loaded %}
|
|
|
|
|
chargé.
|
|
|
|
|
{% else %}
|
|
|
|
|
non chargé.
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
{{ wtf.form_field(form.submit) }}
|
|
|
|
|
{{ wtf.form_field(form.cancel) }}
|
2023-02-27 10:20:59 +01:00
|
|
|
|
</div>
|
2023-03-09 11:59:58 +01:00
|
|
|
|
<div class="form-group" style="margin-top:16px;">
|
2023-11-08 17:58:11 +01:00
|
|
|
|
ℹ️ <em>Note: si le CAS est forcé, le super-admin et les utilisateurs autorisés
|
|
|
|
|
à "se connecter via ScoDoc" pourront toujours se
|
2023-03-02 22:55:25 +01:00
|
|
|
|
connecter via l'adresse spéciale</em>
|
|
|
|
|
<tt style="color: blue;">{{url_for("auth.login_scodoc", _external=True)}}</tt>
|
|
|
|
|
</div>
|
2023-03-09 11:59:58 +01:00
|
|
|
|
</form>
|
2023-02-26 21:24:07 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
2023-03-01 19:10:37 +01:00
|
|
|
|
|
2023-11-08 17:58:11 +01:00
|
|
|
|
|
|
|
|
|
{% endblock %}
|