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
We have to utilize a CustomAuthenticationStateProvider for our Blazor Server App due to pre-existing security tables and structure. In the override of the GetAuthenticationState of my provider, I build a claims principal that has an identity with several claims. We cannot do role based authorization because our organization allows two users of the same role to have customized permissions.
So when attempting to return a claims identity with 13 claims (in the format of key: permission name, value: true) signalr breaks and says that the message size of 32kb was exceeded.
Is there a better way to handle permission driven authorization? Or is my only option increasing the message size limit? We use authorize views in our UI and would love to continue utilizing that instead of a bunch of @ if blocks.
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
-
Hi!
We have to utilize a CustomAuthenticationStateProvider for our Blazor Server App due to pre-existing security tables and structure. In the override of the GetAuthenticationState of my provider, I build a claims principal that has an identity with several claims. We cannot do role based authorization because our organization allows two users of the same role to have customized permissions.
So when attempting to return a claims identity with 13 claims (in the format of key: permission name, value: true) signalr breaks and says that the message size of 32kb was exceeded.
Is there a better way to handle permission driven authorization? Or is my only option increasing the message size limit? We use authorize views in our UI and would love to continue utilizing that instead of a bunch of @ if blocks.
Beta Was this translation helpful? Give feedback.
All reactions