INVALID_TICKET (renew ) authentification CAS

INVALID_TICKET (renew ) authentification CAS

par crémos MOUSLI,
Nombre de réponses : 3


Bonjour,

Des enseignants viennent de me signaler qu’ils ne peuvent plus se connecter à Moole via ENT et cela depuis la dernière mise à jour.

Nous utilisons un plugin (ELEA CAS server SSO) d’authentification via un ENT (Léo Picardie) qui permet de créer automatiquement les compte sur Moodle depuis la connexion au portail ENT.


Infos mode débogage Moodle :

Exception : CAS URL: https://ent.picardie.fr/cas/serviceValidate?service=https%3A%2F%2Ffoad.ac-amiens.fr%2Flogin%2Findex.php%3FauthCAS%3DLEO&ticket=ST-b1856e47-3f68-4d8d-a4e1-49f54170ae2c Authentication failure: Ticket not validated Reason: [INVALID_TICKET] CAS error: the ticket provided was not valid, or the ticket did not come from an initial login and "renew" was set on validation. CAS response: the ticket provided was not valid, or the ticket did not come from an initial login and "renew" was set on validation.

 CAS ENT


Response du serveur CAS :

<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
    <cas:authenticationFailure code="INVALID_TICKET">the ticket provided was not valid, or the ticket did not come from an initial login and "renew" was set on validation.</cas:authenticationFailure>
</cas:serviceResponse>

Extrait logs apache2:

[Tue Apr 23 15:10:42.698340 2019] [proxy_fcgi:error] [pid 21312:tid 140132703205120] [client XXXXXXX:60286] AH01071: Got error 'PHP message: Default exception handler: Exception\xc2\xa0: CAS URL: https://ent.picardie.fr/cas/serviceValidate?service=https%3A%2F%2Ffoad.ac-amiens.fr%2Flogin%2Findex.php%3FauthCAS%3DLEO&amp;ticket=ST-b1856e47-3f68-4d8d-a4e1-49f54170ae2c\nAuthentication failure: Ticket not validated\nReason: [INVALID_TICKET] CAS error: the ticket provided was not valid, or the ticket did not come from an initial login and "renew" was set on validation.\nCAS response: the ticket provided was not valid, or the ticket did not come from an initial login and "renew" was set on validation. Debug: \nError code: generalexceptionmessage\n* line 3236 of /auth/cas/CAS/CAS/Client.php: CAS_AuthenticationException thrown\n* line 1449 of /auth/cas/CAS/CAS/Client.php: call to CAS_Client->validateCAS20()\n* line 1331 of /auth/cas/CAS/CAS/Client.php: call to CAS_Client->isAuthenticated()\n* line 1078 of /auth/cas/CAS/CAS.php: call to CAS_Client->checkAuthentication()\n* line 270 of /auth/eleacas/auth.php: call to phpCAS::checkAuthentication()\n* line 78 ...\n', referer: https://foad.ac-amiens.fr/login/index.php

Error code (CAS protocol 3.0) :

INVALID_TICKET - the ticket provided was not valid, or the ticket did not come from an initial login and renew was set on validation. The body of the \<cas:authenticationFailure\> block of the XML response SHOULD describe the exact details.


Je viens de mettre à jour Moodle version Moodle 3.6.3+ (Build: 20190413) , plugins et thèmes (Version Adaptable 1.8.0.1 (201911701).

Merci d’avance pour vos réponses, dans l’attente de pouvoir échanger.

Crémos



Moyenne des évaluations  -
En réponse à crémos MOUSLI

Re: INVALID_TICKET (renew ) authentification CAS

par Séverin Terrier,
Avatar Documentation writers Avatar Moodleurs particulièrement utiles Avatar Testeurs Avatar Traducteurs

Bonjour,

Donc, mise à jour à la toute dernière version stable hebdomadaire. Mais quelle était la version précédente ?

Séverin

En réponse à Séverin Terrier

Re: INVALID_TICKET (renew ) authentification CAS

par crémos MOUSLI,


Nous étions en version 3.6.2

je viens de faire un test sur un serveur Moodle préprod version 3.6.2 et j'obtiens comme réponse du serveur CAS :

INVALID_SERVICE
Je vais envoyer un courriel au service technique de ENT picardie.

Merci pour votre retour à suivre ...


En réponse à crémos MOUSLI

Re: INVALID_TICKET (renew ) authentification CAS

par crémos MOUSLI,


Bonjour,

Erreur de débutant, j'ai un plugin qui permet de vider le cache de son navigateur qui semble ne pas faire son boulot.
J'ai ouvert une connexion dans une fenêtre de navigation privée cela fonctionne.

"Le message d'erreur avec le code "INVALID_TICKET" indique la plupart du temps que le ticket CAS a déjà été utilisé et donc invalide.
Ou le renvoi du même ticket de service deux fois (impossible raison de sécurité du serveur CAS)".

Crémos