Skip to content

Commit bbc6a01

Browse files
committed
Revert "[DONT MERGE] double bearer bearer in notification auth"
This reverts commit 60e4181.
1 parent b8146a6 commit bbc6a01

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/open_inwoner/openzaak/auth.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ def get_valid_subscription_from_request(request) -> Subscription:
2323

2424

2525
def get_valid_subscriptions_from_bearer(header_value: str) -> Subscription:
26-
# FIXME: JOIN adds an extra Bearer, so we get Bearer Bearer.
27-
jwt_string = re.sub(r"^Bearer Bearer ", "", header_value)
26+
jwt_string = re.sub(r"^Bearer ", "", header_value)
2827
if not jwt_string:
2928
raise InvalidAuth(f"cannot locate Bearer token in header: {header_value}")
3029
return get_valid_subscription_from_jwt(jwt_string)

0 commit comments

Comments
 (0)