Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Access denied page

Where people land without the role a page needs: which role, who can give it, and a way to switch accounts.

Preview

You don't have access to this page

It needs the Admin role. Ask an admin on your team to give it to you.

Signed in as [email protected]. Switch account

Add it to your project

  1. Sign in once on this machine
    izzy login

    The account is free. Create a free account

  2. Add the block
    izzy add block access-denied

    Writes Components/Account/Pages/AccessDenied.razor.

Settings

Each setting is a flag on izzy add. The flag syntax isn't final; for now it looks like this:

bash
izzy add block access-denied 
Access denied page settings
NameType or choicesDefaultDescription
No items

Mode support

What works in each mode, Access denied page
FeatureStaticInteractive
EverythingYesYes

Static: static server-side rendering, with no circuit and no WebAssembly. Interactive: Server, WebAssembly or Auto.

Accessibility

  • The page's message is its h1, so it's the first thing a screen reader reads.
  • The lock is decorative; the title says what happened.
  • Switch account is a button in the sentence that names the account, so it's clear which account it leaves.

Components used

  • Container: Centers content at a readable width.
  • Column: Stacks fields, cards or text from top to bottom, with even spacing.
  • EmptyState: Shows what to do when there's nothing yet.
  • Button: Submits or resets a form, follows a link or runs C#.
  • TextBlock: Sets paragraphs, captions and labels in the library's text styles.

Connection lost

Rejoining the server…