Auth0 Home Blog Docs

How to use Auth0 on Azure Functions (v2) in C#?

jwt

#1

I need a blog posting showing how to use Auth0 on Azure Functions (v2) in C#

Please help!

I found this posting Validating Auth0 JWT tokens in Azure Functions aka How to use Auth0 with Azure Functions… but it for Azure Functions v1, on Azure Functions v2 this does not compile:

if ((principal = await Security.ValidateTokenAsync(req.Headers.Authorization)) == null) // error CS1061: 'IHeaderDictionary' does not contain a definition for 'Authorization'