79083924

Date: 2024-10-13 19:06:30
Score: 2.5
Natty:
Report link

I have the same request, tried various compiler directives but they can't operate on Blazor @attribute. The only way I was able to avoid authorization was to comment out the:

@* @attribute [Authorize(Policy = aClaim)] *@

Which means I have to make sure I remember to uncomment before I push to Git repo and/or test/production environments. Definitely NOT ideal.

Another approach is to change the AD settings in appSettings.json and point to different path and I would still need to build user claims locally.

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @attribute
  • User mentioned (0): @attribute
  • Low reputation (0.5):
Posted by: Rob Ainscough