Skip to content

Commit

Permalink
Merge pull request #1790 from DSD-DBS/safari-authentication-popup
Browse files Browse the repository at this point in the history
fix: Remove `WWW-Authenticate` header from responses
  • Loading branch information
MoritzWeber0 authored Sep 11, 2024
2 parents bc0ea05 + b5aa54d commit f43efb9
Showing 1 changed file with 0 additions and 6 deletions.
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"},
)

0 comments on commit f43efb9

Please sign in to comment.