Trying to do a protected media library and the membermanger.getcurrentmemberasync() method is always null. Is there a way to get the middleware in a place that would have that information?
Thank You!
h
huwred
08/03/2023, 7:24 AM
That should work, what version of Umbraco are you on?
huwred
08/03/2023, 7:26 AM
where are you registering your middleware? it should come after
app.UseAuthentication();
app.ProtectedMediaHandler();