Organisationsverwaltung
Requires ADMIN .
Access denied
Switch the shared demo token and navigate through the guarded pages to see how the same OPA permissions drive both routed access and in-page UI state.
Directive demo
The shared token in the app shell flows through provideAuthz() as defaultInput .
Requires ADMIN .
Access denied
Allows ADMIN and MODERATOR .
Access allowed
<ng-container *authz="'test/Organisationsverwaltung'; loading: organisationsLoading; else: organisationsDenied">
<p>Access allowed</p>
</ng-container>
<ng-template #organisationsLoading>
<p>Loading policy result...</p>
</ng-template>
<ng-template #organisationsDenied>
<p>Access denied</p>
</ng-template>Hook demo
protected readonly testPath = signal('test/Organisationsverwaltung');
protected readonly testToken = signal('ADMIN');
protected readonly useAuthzTest = useAuthz<boolean>({
path: this.testPath,
input: computed(() => ({ token: this.testToken() })),
});$pnpm add dfx-opa$npm install dfx-opa$yarn add dfx-opa$bun add dfx-opa