Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
When serving locally, ignore non-JWT auth headers #108
Before this change, when serving locally all Authorization bearer headers were parsed as JWTs. That breaks if anybody is using bearer headers with any other kind of token, and makes it impossible to test such functions locally.
This PR adds the Identity clientContext only if the header exists and can be parsed. If it can't be parsed, it silently falls back to the default