Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor with Identity, custom AuthorizationHandler being called twice

$
0
0

Following the below guide for a custom AuthorizationHandler - single handler for a single requirement.Use a handler for one requirement

However, the HandleRequirementAsync() is called twice - which may be the source of this problem.

The component named AuthWithPolicyDbAccess uses the policy.The handler code defined in SpecialFlagHandler.cs.I tried the rendermode directive to disable pre-rendering, but the Handler was still called twice.

Source code is at GitHub repo


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>