Skip to content

SignalR Negotiate does not work anymore in 4.0.39-beta.4 #124

Closed
@alexeymarkov

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions