Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
informatique:securite:authentic [2021/10/07 14:36] – [Authentic] bn8 | informatique:securite:authentic [2021/10/07 14:41] – [Authentic] bn8 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Authentic ====== | ====== Authentic ====== | ||
+ | |||
+ | **Doc officielle (en partie obsolète) :** https:// | ||
===== Configuration d'une application cliente CAS ===== | ===== Configuration d'une application cliente CAS ===== | ||
Ligne 21: | Ligne 23: | ||
* '' | * '' | ||
* pas de suffixe entre parenthèses : il s'agit le plus souvent d' | * pas de suffixe entre parenthèses : il s'agit le plus souvent d' | ||
+ | |||
+ | ===== Génération d' | ||
+ | |||
+ | Authentic permet d' | ||
+ | |||
+ | <code python> | ||
+ | def generate_fullname(ctx): | ||
+ | return ctx[' | ||
+ | |||
+ | ATTRIBUTE_SOURCES = [ | ||
+ | (' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | }), | ||
+ | ] | ||
+ | </ | ||
+ | |||
+ | <note tip>'' | ||
+ | return attrs.get(' | ||
+ | </ | ||
+ | |||
+ | **Exemple complet pour la génération de l' | ||
+ | <code python> | ||
+ | import logging | ||
+ | |||
+ | log = logging.getLogger(' | ||
+ | |||
+ | def generate_eduPersonScopedAffiliation(ctx): | ||
+ | attrs = ctx[' | ||
+ | if ' | ||
+ | log.warning(' | ||
+ | return [] | ||
+ | |||
+ | domain = os.environ.get(' | ||
+ | if not domain: | ||
+ | log.warning(' | ||
+ | return [] | ||
+ | |||
+ | log.debug(' | ||
+ | return [" | ||
+ | |||
+ | ATTRIBUTE_SOURCES = [ | ||
+ | (' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | }), | ||
+ | ] | ||
+ | </ | ||
+ | |||