diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c7435720de6826b86438431fecc186983c780672..6d49acadaedd8b599aa36a9732af607b01ed4c28 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -113,6 +113,7 @@ dependencies_vuln: needs: - job: install_venv artifacts: false + allow_failure: true deploy_beta: tags: diff --git a/accounts/backends.py b/accounts/backends.py index 8858e4a9d040daf3818f09005e854bd5f9b3314b..d8037267ecb2a3c924b14deb46ad380cd7f34860 100644 --- a/accounts/backends.py +++ b/accounts/backends.py @@ -54,7 +54,7 @@ class CASAuth(BaseAuth): container = label.findNextSibling() if container is None: return None - value = container.getText()[1:-1] + value = container.getText().strip("[] \n\t") return value or None def _get_names(self, soup) -> Tuple[str, str]: diff --git a/accounts/test_fixtures/cas_logged_in.html b/accounts/test_fixtures/cas_logged_in.html index 4416101c9e39a2235c5226aaa86dbb8aae90d77d..b4a5ca4a1415c4ef61cef0d2f4d8d0a0fffcd2ac 100644 --- a/accounts/test_fixtures/cas_logged_in.html +++ b/accounts/test_fixtures/cas_logged_in.html @@ -1,8 +1,12 @@ - Connexion réussie - CAS – Central Authentication Service - + CAS - Central Authentication Service + + + + @@ -64,7 +68,7 @@ +