<tyro-ui-forbidden>
Forbidden
403 error page - displayed when the user is authenticated but does not have the rights to access the requested resource.
Preview
[homeLink]="/"
Error 403
403
Access denied
You don't have the required permissions to access this page.
Check the URL or go back to the home page.
Inputs
Property | Type | Default | Description |
|---|---|---|---|
[homeLink] | string | '/' | Route for the back-to-home button |
[homeLabel] | string | "Retour à l'accueil" | Button text (fr) |
[homeLabelEn] | string | 'Back to home' | Button text (en) |
Usage - Angular guard
Redirect to this component when an auth guard denies access.
import { TyroUiForbidden } from 'tyrolium-ui';
// Route protégée / Protected route
{ path: 'admin', component: AdminPage, canActivate: [authGuard] },
// Route 403 dédiée / Dedicated 403 route
{ path: '403', component: TyroUiForbidden },