198 lines
5 KiB
Python
198 lines
5 KiB
Python
|
|
from functools import partial
|
||
|
|
|
||
|
|
# we need to ignore this because we are
|
||
|
|
# ignoring the entire generic_func.py module
|
||
|
|
from .generic_func import ( # type: ignore
|
||
|
|
_cas,
|
||
|
|
_cas_edu,
|
||
|
|
_open_ent_ng_edu,
|
||
|
|
_open_ent_ng,
|
||
|
|
_wayf,
|
||
|
|
_hubeduconnect,
|
||
|
|
_oze_ent,
|
||
|
|
_simple_auth,
|
||
|
|
)
|
||
|
|
|
||
|
|
"""CAS"""
|
||
|
|
|
||
|
|
cas_arsene76 = partial(
|
||
|
|
_cas, url="https://cas.arsene76.fr/login?selection=ATS_parent_eleve"
|
||
|
|
) # à supprimer aux vacances d'automne
|
||
|
|
|
||
|
|
cas_ent27 = partial(_cas, url="https://cas.ent27.fr/login?selection=ATS_parent_eleve")
|
||
|
|
# à supprimer aux vacances d'automne
|
||
|
|
|
||
|
|
cas_kosmos = partial(_cas, url="https://cas.kosmoseducation.com/login")
|
||
|
|
|
||
|
|
ent_creuse = partial(
|
||
|
|
_cas, url="https://cas.entcreuse.fr/login?selection=ATS_parent_eleve"
|
||
|
|
)
|
||
|
|
|
||
|
|
occitanie_montpellier = partial(
|
||
|
|
_cas, url="https://cas.mon-ent-occitanie.fr/login?selection=CSES-ENT_parent_eleve"
|
||
|
|
)
|
||
|
|
|
||
|
|
val_doise = partial(
|
||
|
|
_cas, url="https://cas.moncollege.valdoise.fr/login?selection=eleveparent"
|
||
|
|
)
|
||
|
|
|
||
|
|
"""CAS with EduConnect"""
|
||
|
|
|
||
|
|
val_de_marne = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://cas.moncollege.valdemarne.fr/login?selection=EDU_parent_eleve",
|
||
|
|
)
|
||
|
|
|
||
|
|
cas_cybercolleges42_edu = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://cas.cybercolleges42.fr/login?selection=EDU_parent_eleve&service=",
|
||
|
|
)
|
||
|
|
|
||
|
|
ecollege_haute_garonne_edu = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://cas.ecollege.haute-garonne.fr/login?selection=EDU_parent_eleve&service=",
|
||
|
|
)
|
||
|
|
|
||
|
|
ac_orleans_tours = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://ent.netocentre.fr/cas/login?token=ce8ae867a0accc0b7577fcc340bb99f4&idpId=parentEleveEN-IdP",
|
||
|
|
redirect_form=False,
|
||
|
|
)
|
||
|
|
|
||
|
|
ac_poitiers = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://sp-ts.ac-poitiers.fr/dispatcher/index2.php",
|
||
|
|
redirect_form=False,
|
||
|
|
)
|
||
|
|
|
||
|
|
ac_reunion = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://sso.ac-reunion.fr/saml/discovery/?idp_ident=https://educonnect.education.gouv.fr/idp",
|
||
|
|
)
|
||
|
|
|
||
|
|
cas_agora06 = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://cas.agora06.fr/login?selection=EDU&service=",
|
||
|
|
)
|
||
|
|
|
||
|
|
cas_seinesaintdenis_edu = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://cas.webcollege.seinesaintdenis.fr/login?selection=EDU_parent_eleve&service=",
|
||
|
|
)
|
||
|
|
|
||
|
|
cas_arsene76_edu = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://cas.arsene76.fr/login?selection=EDU_parent_eleve&service=",
|
||
|
|
)
|
||
|
|
|
||
|
|
eclat_bfc = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://cas.eclat-bfc.fr/login?selection=EDU&service=",
|
||
|
|
)
|
||
|
|
|
||
|
|
ent_auvergnerhonealpe = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://cas.ent.auvergnerhonealpes.fr/login?selection=EDU&service=",
|
||
|
|
)
|
||
|
|
|
||
|
|
laclasse_educonnect = partial(
|
||
|
|
_cas_edu, url="https://www.laclasse.com/sso/educonnect", redirect_form=False
|
||
|
|
)
|
||
|
|
|
||
|
|
monbureaunumerique = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://cas.monbureaunumerique.fr/login?selection=EDU&service=",
|
||
|
|
)
|
||
|
|
|
||
|
|
ac_reims = monbureaunumerique
|
||
|
|
|
||
|
|
occitanie_montpellier_educonnect = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://cas.mon-ent-occitanie.fr/login?selection=MONT-EDU_parent_eleve&service=",
|
||
|
|
)
|
||
|
|
|
||
|
|
occitanie_toulouse_edu = partial(
|
||
|
|
_cas_edu,
|
||
|
|
url="https://cas.mon-ent-occitanie.fr/login?selection=TOULO-EDU_parent_eleve&service=",
|
||
|
|
)
|
||
|
|
|
||
|
|
ent_creuse_educonnect = partial(
|
||
|
|
_cas_edu, url="https://cas.entcreuse.fr/login?selection=EDU"
|
||
|
|
)
|
||
|
|
|
||
|
|
"""Open ENT NG"""
|
||
|
|
|
||
|
|
ent77 = partial(_open_ent_ng, url="https://ent77.seine-et-marne.fr/auth/login")
|
||
|
|
|
||
|
|
ent_ecollege78 = partial(_open_ent_ng, url="https://ent.ecollege78.fr/auth/login")
|
||
|
|
|
||
|
|
ent_essonne = partial(
|
||
|
|
_open_ent_ng, url="https://www.moncollege-ent.essonne.fr/auth/login"
|
||
|
|
)
|
||
|
|
|
||
|
|
ent_mayotte = partial(
|
||
|
|
_open_ent_ng, url="https://mayotte.opendigitaleducation.com/auth/login"
|
||
|
|
)
|
||
|
|
|
||
|
|
ile_de_france = partial(_open_ent_ng, url="https://ent.iledefrance.fr/auth/login")
|
||
|
|
|
||
|
|
neoconnect_guadeloupe = partial(
|
||
|
|
_open_ent_ng, url="https://neoconnect.opendigitaleducation.com/auth/login"
|
||
|
|
)
|
||
|
|
|
||
|
|
paris_classe_numerique = partial(
|
||
|
|
_open_ent_ng, url="https://ent.parisclassenumerique.fr/auth/login"
|
||
|
|
)
|
||
|
|
|
||
|
|
lyceeconnecte_aquitaine = partial(
|
||
|
|
_open_ent_ng, url="https://mon.lyceeconnecte.fr/auth/login"
|
||
|
|
)
|
||
|
|
|
||
|
|
"""Open ENT NG with EduConnect"""
|
||
|
|
|
||
|
|
ent_94 = partial(
|
||
|
|
_open_ent_ng_edu,
|
||
|
|
domain="https://ent94.opendigitaleducation.com",
|
||
|
|
providerId="urn:fi:ent:prod-cd94-edu:1.0",
|
||
|
|
)
|
||
|
|
|
||
|
|
ent_hdf = partial(_open_ent_ng_edu, domain="https://enthdf.fr")
|
||
|
|
|
||
|
|
ent_somme = ent_hdf
|
||
|
|
|
||
|
|
ent_var = partial(
|
||
|
|
_open_ent_ng_edu,
|
||
|
|
domain="https://moncollege-ent.var.fr",
|
||
|
|
providerId="urn:fi:ent:prod-cd83-edu:1.0",
|
||
|
|
)
|
||
|
|
|
||
|
|
l_normandie = partial(_open_ent_ng_edu, domain="https://ent.l-educdenormandie.fr")
|
||
|
|
|
||
|
|
lyceeconnecte_edu = partial(_open_ent_ng_edu, domain="https://mon.lyceeconnecte.fr")
|
||
|
|
|
||
|
|
"""WAYF"""
|
||
|
|
|
||
|
|
ent_elyco = partial(_wayf, domain="https://cas3.e-lyco.fr", redirect_form=False)
|
||
|
|
|
||
|
|
"""HubEduConnect"""
|
||
|
|
|
||
|
|
bordeaux = partial(_hubeduconnect)
|
||
|
|
|
||
|
|
"""OZE ENT"""
|
||
|
|
|
||
|
|
# enc_hauts_de_seine = partial(_oze_ent, url="https://enc.hauts-de-seine.fr/")
|
||
|
|
|
||
|
|
"""Simple Auth"""
|
||
|
|
|
||
|
|
atrium_sud = partial(
|
||
|
|
_simple_auth,
|
||
|
|
url="https://www.atrium-sud.fr/connexion/login",
|
||
|
|
form_attr={"id": "fm1"},
|
||
|
|
)
|
||
|
|
laclasse_lyon = partial(_simple_auth, url="https://www.laclasse.com/sso/login")
|
||
|
|
|
||
|
|
extranet_colleges_somme = partial(
|
||
|
|
_simple_auth,
|
||
|
|
url="http://www.colleges.cg80.fr/identification/identification.php",
|
||
|
|
)
|