owncast/test/automated/api
Alyssa Ross 092134f3f3
Fix parsing of Authorization Bearer header (#3376)
The semantics of the Authorization header are defined by RFC 9110, which says:

> It uses a case-insensitive token to identify the authentication scheme:

Therefore, "bearer", "Bearer", and "bEARER" are equivalent.  This patch fixes
the parsing of the Authorization header to check for the Bearer authentication
scheme case insensitively.

I've modified one of the test cases to use lowercase "bearer", so there's test
coverage for this.
2023-10-21 10:00:50 -07:00
..
lib Use a random number instead of hard coded in test 2023-01-22 20:43:01 -08:00
schema validate Nodeinfo response by schema (#2390) 2022-11-29 16:05:44 -08:00
admin.test.js use lib/admin.js functions in api tests (#2419) 2022-12-08 13:46:57 -08:00
auth.test.js Add some API paths to the auth test as well for completeness 2023-03-10 12:22:50 -08:00
chat.test.js fix(test): fix test to reflect chat message updates 2023-06-27 15:19:49 -07:00
chatmoderation.test.js use randomString/Number from lib in api tests (#2542) 2023-01-04 14:09:51 -08:00
chatusers.test.js use randomString/Number from lib in api tests (#2542) 2023-01-04 14:09:51 -08:00
configmanagement.test.js chore(tests): temp comment out a couple config tests that are breaking due to race conditions 2023-10-08 14:33:22 -07:00
federation.test.js validate response of federation APIs (#2408) 2022-12-10 21:10:10 -08:00
index.test.js Automated browser testing (#1415) 2021-09-17 14:04:09 -07:00
integrations.test.js Fix parsing of Authorization Bearer header (#3376) 2023-10-21 10:00:50 -07:00
package-lock.json Bump @babel/traverse from 7.12.5 to 7.23.2 in /test/automated/api (#3366) 2023-10-16 12:15:32 -07:00
package.json validate response of federation APIs (#2408) 2022-12-10 21:10:10 -08:00
publicstatic.test.js Make the public dir live inside data to make volume mounting easier 2023-01-17 17:04:07 -08:00
run.sh Fix HLS automatic test (#2572) 2023-01-11 20:11:13 -08:00