Save $100 with promo code CHEERS2025

As we are looking forward to an incredible 2025, enjoy our end-of-year promotion! Valid now through January 6th.

See Pricing

Still using Radzen Studio?
Achieve more with Radzen Blazor Studio

Radzen Blazor Studio is our new flagship product and vision of how rapid Blazor application development should be done.

Go to Radzen Blazor Studio

Security API | Blazor (Blazor)

When security is enabled Radzen will inject an instance of the SecurityService class in all pages. It is available as the Security property.

Security methods

IsAuthenticated

Returns true if the user is authenticated (logged in); otherwise false;

Use it in Radzen as ${Security.IsAuthenticated()}.

IsInRole

Returns true if the user is from the specified role(s) or Administrator; otherwise false;

Use it in Radzen as ${Security.IsInRole("Sales")}.

Security properties

User

Returns the current ApplicationUser instance.

Use it in Radzen as ${Security.User.Email}.

Check Extend Application User for instructions about adding custom properties to the user.