Unauthorized Page¶
This page can be used when user is authenticated but does not have required access permissions.
Deprecation warning
The si-unauthorized-page
component has been deprecated and will be removed in the future. Use the Info Page instead. It is a superset and supports the same and even more use cases.
Usage¶
When to use¶
- When an authenticated user opens an application or page without having the required permissions.
Code¶
Usage¶
import { RouterModule } from '@angular/router';
import { SiUnauthorizedPageModule } from '@siemens/element-ng';
@NgModule({
imports: [SiUnauthorizedPageModule, RouterModule, ..],
})
Use the <si-unauthorized-page [...]=...></si-unauthorized-page>
component on a page of your application and set the input properties as needed. All input strings are sent to the translate pipe by the component.
One follow-up option¶
Configure an external link, internal router link or a custom action by the link object to provide a follow-up option to leave the unauthorized page or to get additional help.
Multiple follow-up options¶
Leave the link object undefined
and use content projection to offer multiple options for the user. For example, you can set multiple buttons.
Except where otherwise noted, content on this site is licensed under MIT License.