jacobm2778
My HttpContext.User always return null
is this for blazor? Once the session starts and signal r kicks in there isn't an http context any longer. You have to catch it before it goes away or iirc the right way is to use AuthenticationStateProvider.
6 replies
Does anybody know in Azure Active Directory B2C what should I use instead of a ROPC flow for an endp
2 replies
My functions wont work and i dont know what i am doing wrong
To be more specific, if those functions are static as well you need to ensure you have those classes imported so that you may call them. Or if not, ensure imports are correct and create new object instances and call the function from those objects.
7 replies
My functions wont work and i dont know what i am doing wrong
Error CS0176 means you are trying to call the function by creating an object from a class instead of calling it from the class directly which is required for static. For example, when using statics you can't do something like MyClass object = new () then object.StaticFunction(), you have to do MyClass.StaticFunction.
7 replies