Skip to content

refactor: Clean up authentication code; add tests for OIDC

Codecov / codecov/patch succeeded Jul 31, 2024 in 1s

86.66% of diff hit (target 81.12%)

View this Pull Request on Codecov

86.66% of diff hit (target 81.12%)

Annotations

Check warning on line 41 in backend/capellacollab/core/authentication/api_key_cookie.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/api_key_cookie.py#L41

Added line #L41 was not covered by tests

Check warning on line 44 in backend/capellacollab/core/authentication/api_key_cookie.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/api_key_cookie.py#L44

Added line #L44 was not covered by tests

Check warning on line 47 in backend/capellacollab/core/authentication/api_key_cookie.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/api_key_cookie.py#L46-L47

Added lines #L46 - L47 were not covered by tests

Check warning on line 51 in backend/capellacollab/core/authentication/api_key_cookie.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/api_key_cookie.py#L50-L51

Added lines #L50 - L51 were not covered by tests

Check warning on line 55 in backend/capellacollab/core/authentication/api_key_cookie.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/api_key_cookie.py#L55

Added line #L55 was not covered by tests

Check warning on line 64 in backend/capellacollab/core/authentication/api_key_cookie.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/api_key_cookie.py#L64

Added line #L64 was not covered by tests

Check warning on line 66 in backend/capellacollab/core/authentication/api_key_cookie.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/api_key_cookie.py#L66

Added line #L66 was not covered by tests

Check warning on line 77 in backend/capellacollab/core/authentication/api_key_cookie.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/api_key_cookie.py#L74-L77

Added lines #L74 - L77 were not covered by tests

Check warning on line 91 in backend/capellacollab/core/authentication/api_key_cookie.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/api_key_cookie.py#L91

Added line #L91 was not covered by tests

Check warning on line 28 in backend/capellacollab/core/authentication/basic_auth.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/basic_auth.py#L28

Added line #L28 was not covered by tests

Check warning on line 44 in backend/capellacollab/core/authentication/basic_auth.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/basic_auth.py#L44

Added line #L44 was not covered by tests

Check warning on line 44 in backend/capellacollab/core/authentication/oidc.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/oidc.py#L44

Added line #L44 was not covered by tests

Check warning on line 47 in backend/capellacollab/core/authentication/oidc.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/oidc.py#L47

Added line #L47 was not covered by tests

Check warning on line 150 in backend/capellacollab/core/authentication/oidc.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/oidc.py#L149-L150

Added lines #L149 - L150 were not covered by tests

Check warning on line 153 in backend/capellacollab/core/authentication/oidc.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/oidc.py#L153

Added line #L153 was not covered by tests

Check warning on line 84 in backend/capellacollab/core/authentication/routes.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/routes.py#L84

Added line #L84 was not covered by tests

Check warning on line 152 in backend/capellacollab/core/authentication/routes.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/core/authentication/routes.py#L151-L152

Added lines #L151 - L152 were not covered by tests

Check warning on line 378 in backend/capellacollab/sessions/routes.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/sessions/routes.py#L378

Added line #L378 was not covered by tests

Check warning on line 35 in backend/capellacollab/users/exceptions.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/users/exceptions.py#L35

Added line #L35 was not covered by tests

Check warning on line 142 in backend/capellacollab/users/routes.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

backend/capellacollab/users/routes.py#L142

Added line #L142 was not covered by tests