Projet

Général

Profil

Bug #67903

auth_saml, KeyError: 'ENTITY_ID'

Ajouté par Sentry Io il y a presque 2 ans. Mis à jour il y a presque 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
03 août 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/62665/

KeyError: 'ENTITY_ID'
(6 additional frame(s) were not displayed)
...
  File "django/views/decorators/cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "authentic2/views.py", line 430, in login
    utils_misc.get_authenticator_method(authenticator, 'login', parameters)
  File "authentic2/utils/misc.py", line 216, in get_authenticator_method
    content = response = getattr(authenticator, method)(**parameters)
  File "authentic2_auth_saml/models.py", line 215, in login
    return views.login(request, self, *args, **kwargs)
  File "authentic2_auth_saml/views.py", line 18, in login
    request, login_url='mellon_login', params={'entityID': settings['ENTITY_ID']}

Historique

#1

Mis à jour par Nicolas Roche il y a presque 2 ans

  • Projet changé de Suivi des traces à Authentic 2
  • Sujet changé de KeyError: 'ENTITY_ID' à auth_saml, KeyError: 'ENTITY_ID'

Ce sera peut-être l'occasion d'ajouter le test dont il est fait mention dans ce ticket avec une trace très proche :
https://dev.entrouvert.org/issues/66964#note-5

#2

Mis à jour par Frédéric Péters il y a presque 2 ans

  • Statut changé de Nouveau à Fermé

Le contexte de cette trace c'est une erreur de configuration,

mellon: metadata path https://login.microsoftonline.com/98604871-595c-4bfa-86fd-a0b40f83c27f/FederationMetadata/2007-06/FederationMetadata.xml does not exist

L'URL avait été renseignée là où un chemin était attendu.

Pour moi on peut fermer et que ça se règle via #67451.

Formats disponibles : Atom PDF