0001-planitech-check_status-without-cookies-requirement-2.patch
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 |
- |