firebase-functions
firebase-functions copied to clipboard
Fix bug where callable function skipped unrecognized auth headers
We have a weird edge case where an authorization in form we don't recognize will completely skip the auth check.
The fix here applies 2 changes:
-
We allow 'Bearer <TOKEN>' format to be case insensitive. 'bearer <TOKEN>' also works.
-
We reject other authorization header. e.g. 'Beaver
' is rejected.