duncanmmacleod/requests-ecp

View on GitHub

Showing 34 of 34 total issues

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert auth.password == "mypasswd"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Possible hardcoded password: 'passwd'
Open

            session.auth = self.TEST_CLASS(
                idp="test",
                username="user",
                password="passwd",
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert isinstance(auth, HTTPBasicAuth)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert isinstance(auth, HTTPBasicAuth)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Using etree to parse untrusted XML data is known to be vulnerable to XML attacks. Replace etree with the equivalent defusedxml package.
Open

from lxml import etree

Severity: Info
Found in requests_ecp/tests/test_ecp.py by bandit

Using etree to parse untrusted XML data is known to be vulnerable to XML attacks. Replace etree with the equivalent defusedxml package.
Open

from lxml import etree

Severity: Info
Found in requests_ecp/ecp.py by bandit

Possible hardcoded password: 'passwd'
Open

        with self.TEST_CLASS(
            idp="https://idp.example.com/profile/SAML2/SOAP/ECP",
            kerberos=False,
            username="user",
            password="passwd",
Severity: Info
Found in requests_ecp/tests/test_session.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert auth.username == "user"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert auth.password == "passwd"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert isinstance(auth, HTTPBasicAuth)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Possible hardcoded password: 'passwd'
Open

            session.auth = self.TEST_CLASS(
                idp="test",
                username="user",
                password="passwd",
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert session.auth._num_ecp_auth
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert requests_ecp_auth.is_gitlab_auth_redirect(resp)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert auth.username == "me"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit
Severity
Category
Status
Source
Language