Hi maliming,
Thanks for the quick response.
Yes that code will work fines I think also.
For information in my investigation I also saw If I remember well that User is not nullable and there is a null guard in the Context constructor then context.User.Identity?.IsAuthenticated
would be ok too.
Thanks again!