Deploying Blazor server-side; not displaying objects that have a per user restriction #1782
-
Hi, we are using Blazor 5.3, and Custom principal. We have an object named Department, and some users have rights to add new Department, and this is done on clicking the button (if user has rights to add it, then the button is displayed: So far so good. The users that don't have the rights, they don't see that button. We can debug the app, and everything is fine, as far as we can see it. However, when we release the code to IIS production server, the button is not displayed. We thought that the it must be something in the database that's different, and connect VS to production DB, and button is displayed. And on production site is not, using same user. What do you think is wrong here? Not sure how to even debug server-side, since all API calls are SignalR related to UI: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This is server-side Blazor? Is the production server configured the same as in dev? Especially in terms of the web site authentication, etc. |
Beta Was this translation helpful? Give feedback.
-
Are you following the same authentication model as I walk through in my Blazor book? That technique relies on Blazor maintaining a consistent memory set on the server, which is how it should work. |
Beta Was this translation helpful? Give feedback.
Are you following the same authentication model as I walk through in my Blazor book? That technique relies on Blazor maintaining a consistent memory set on the server, which is how it should work.