File tree Expand file tree Collapse file tree
packages/auth0_api_python Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ async def verify_request(
9393 raise self ._prepare_error (MissingAuthorizationError ())
9494 elif len (parts ) > 2 :
9595 raise self ._prepare_error (
96- InvalidAuthSchemeError ("Invalid Authorization HTTP Header Format " )
96+ InvalidAuthSchemeError ("" )
9797 )
9898
9999 scheme , token = parts
Original file line number Diff line number Diff line change @@ -1534,7 +1534,8 @@ async def test_verify_request_with_multiple_spaces_in_authorization():
15341534 )
15351535 with pytest .raises (InvalidAuthSchemeError ) as err :
15361536 await api_client .verify_request ({"authorization" : "Bearer token with extra spaces" })
1537- assert "authorization" in str (err .value ).lower ()
1537+ assert err .value .get_status_code () == 400
1538+ assert "invalid_request" in str (err .value .get_error_code ()).lower ()
15381539
15391540@pytest .mark .asyncio
15401541async def test_verify_request_fail_missing_dpop_header ():
You can’t perform that action at this time.
0 commit comments