FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

Fix trailing slash

Merged Robin Goodall requested to merge fix-trailing-slash into main
1 unresolved thread
@@ -246,8 +246,8 @@ class APIGatewayAuthTestCase(TestCase):
@@ -246,8 +246,8 @@ class APIGatewayAuthTestCase(TestCase):
self.assertEqual(self.mock_verify_token.call_args[0][0], self.expected_token)
self.assertEqual(self.mock_verify_token.call_args[0][0], self.expected_token)
# Both audience with and without trailing slash should be passed to the token verification
# Both audience with and without trailing slash should be passed to the token verification
self.assertEqual(
self.assertEqual(
self.mock_verify_token.call_args[1]["audience"],
set(self.mock_verify_token.call_args[1]["audience"]),
["https://audience.invalid/", "https://audience.invalid"],
{"https://audience.invalid/", "https://audience.invalid"},
)
)
self.assertEqual(
self.assertEqual(
self.mock_verify_token.call_args[1]["certs_url"], "https://issuer.invalid/certs"
self.mock_verify_token.call_args[1]["certs_url"], "https://issuer.invalid/certs"
Loading