azure-functions-jwt-binding
azure-functions-jwt-binding copied to clipboard
Exception binding parameter 'auth'. HexMaster.Functions.JwtBinding: Could not load file or assembly 'Microsoft.IdentityModel.Tokens, Version=6.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
I have added your library to my functions and added an auth paramater with the binding. If I enable debugging it works.
If I send a token I get the error in the title.
If I send a request with no auth I get the expected System.Private.CoreLib: Exception while executing function: GetSurveyNames. Microsoft.Azure.WebJobs.Host: Exception binding parameter 'auth'. HexMaster.Functions.JwtBinding: JWT Token Validation failed, request not authorized. Authorization header is missing, add a bearer token to the header of your HTTP request.
If I explicitly include <PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.7.1.0" />
it won't compile because your package requires >=6.8.0.0.