You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to load policies from database so that users can dynamically set the role permissions/policies. The problem is that the Authorization Policy validation happens even before completing the httpclient request and i get the error the policy doesnt exist.
Is there any way to make http request synchronous or pause Poilicy validation till the http reposne.
In this case if i try to directly open the above page i get the error Unhandled exception rendering component: The AuthorizationPolicy named: 'FinanceTransaction' was not found
Is there any way to check if the policy is loaded or exists before page load ? or Is there any other better approach to this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to load policies from database so that users can dynamically set the role permissions/policies. The problem is that the Authorization Policy validation happens even before completing the httpclient request and i get the error the policy doesnt exist.
Is there any way to make http request synchronous or pause Poilicy validation till the http reposne.
PolicyRole json sample
AddAuthorizationCore
Razor Page
In this case if i try to directly open the above page i get the error
Unhandled exception rendering component: The AuthorizationPolicy named: 'FinanceTransaction' was not found
Is there any way to check if the policy is loaded or exists before page load ? or Is there any other better approach to this.
Beta Was this translation helpful? Give feedback.
All reactions