Projet

Général

Profil

0001-planitech-check_status-without-cookies-requirement-2.patch

Emmanuel Cazenave, 05 décembre 2018 18:46

Télécharger (1 ko)

Voir les différences:

Subject: [PATCH] planitech: check_status without cookies requirement (#28651)

 passerelle/contrib/planitech/models.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
passerelle/contrib/planitech/models.py
239 239
            raise APIError("Authentication to Planitech failed: %s" % str(e))
240 240

  
241 241
    def check_status(self):
242
        self._call_planitech(self.requests.get, 'getCapabilities')
242
        auth_url = urlparse.urljoin(self.url, 'auth')
243
        response = self.requests.get(auth_url, headers={'MH-LOGIN': self.username})
244
        response.raise_for_status()
243 245

  
244 246
    @endpoint(
245 247
        perm='can_access',
246
-