Closed alexeymarkov closed 4 years ago
If you are agree I could apply fixes and provide a PR :-)
Agree they are all issues. If you can easily do a PR please do - otherwise give me a couple of days and I'll get these addressed.
Thanks for the PR - now merged.
Hello,
In case of invalid JWT it thrown an exception and a function returns 500 but it should return 404 (with logging of an original exception). To fix it add
because ArgumentException is thrown when CanReadToken returns false.
it seems in this case the configuration won't be updated because
await Configuration.ConfigurationManager.GetConfigurationAsync(CancellationToken.None)
is called outside of the loop.Exceptions are also not caught when calling
await Configuration.ConfigurationManager.GetConfigurationAsync(CancellationToken.None)
. This means a function will return 500 but I think it should return 404 (eventually with logging of an original exception).