The AuthorizeView component supports role-based or policy-based authorization.
For role-based authorization, use the Roles parameter:
<AuthorizeView Roles="admin, superuser"> <p>You can only see this if you're an admin or superuser.</p> </AuthorizeView>
For policy-based authorization, use the Policy parameter:
<AuthorizeView Policy="content-editor"> <p>You can only see this if you satisfy the "content-editor" policy.</p> </AuthorizeView>