Restricting access to a Blazor Component

I am trying to restrict access to a Blazor Component with the

@attribute [Authorize(Roles = “admin”)]

I have added the role in the admin. How do I wire this up?

1 Like

Same question here. Basic authentication and authorisation works, but am not getting anywhere with role based authorisation.
Some help here would be really appreciated.
Thanks.