SignalR Negotiate does not work anymore in 4.0.39-beta.4 #124
Closed
Description
It throw NullReferenceException at the line
var tokenValidator = (FunctionMonkey.Abstractions.ITokenValidator) FunctionMonkey.Runtime.ServiceProvider.GetService(typeof({{TokenValidatorTypeName}})); principal = await tokenValidator.ValidateAsync(authorizationHeader);
-> tokenValidator is null here.
I have to change it to
var tokenValidator = (FunctionMonkey.Abstractions.ITokenValidator) FunctionMonkey.Runtime.ServiceProvider.GetService(typeof(FunctionMonkey.Abstractions.ITokenValidator));
to make it working.
I found comments in your code you are going to get rid of TokenValidatorType in FunctionDefinition. That is ok but would be great to have it fixed :-)
Metadata
Assignees
Labels
No labels