Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove WWW-Authenticate header from responses #1790

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions backend/capellacollab/core/authentication/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def __init__(self, scheme: str):
"Use 'basic' or 'bearer' instead"
),
err_code="UNKNOWN_SCHEME",
headers={"WWW-Authenticate": "Basic, Cookie"},
)


Expand All @@ -67,7 +66,6 @@ def __init__(self):
title="Token signature expired",
reason="The Signature of the token is expired. Please refresh the token or request a new access token.",
err_code="TOKEN_SIGNATURE_EXPIRED",
headers={"WWW-Authenticate": "Basic, Cookie"},
)


Expand All @@ -78,7 +76,6 @@ def __init__(self):
title="Refresh token signature expired",
reason="The Signature of the refresh token is expired. Please request a new access token.",
err_code="REFRESH_TOKEN_EXPIRED",
headers={"WWW-Authenticate": "Basic, Cookie"},
)


Expand Down Expand Up @@ -109,7 +106,6 @@ def __init__(self):
title="Unauthenticated",
reason="Not authenticated",
err_code="UNAUTHENTICATED",
headers={"WWW-Authenticate": "Basic, Cookie"},
)


Expand All @@ -120,7 +116,6 @@ def __init__(self):
title="Personal access token not valid.",
reason="The used token is not valid.",
err_code="BASIC_TOKEN_INVALID",
headers={"WWW-Authenticate": "Basic, Cookie"},
)


Expand Down Expand Up @@ -154,5 +149,4 @@ def __init__(self):
"Please request a new access token."
),
err_code="PAT_EXPIRED",
headers={"WWW-Authenticate": "Basic, Cookie"},
)
Loading