@syndew/oluso-plugin-fido2
v1.30.1
Published
Passkeys (FIDO2 / WebAuthn) for the Oluso portals: credential administration in the admin portal and a passkeys page in the account portal.
Maintainers
Readme
@syndew/oluso-plugin-fido2
Passkeys (FIDO2 / WebAuthn) for the Oluso portals:
- admin portal (
FIDO2_PLUGIN): a passkeys dashboard, every registered credential, and a passkeys tab on each user - account portal (
FIDO2_ACCOUNT_PLUGIN): a page where users register, rename and remove their own passkeys
It needs the FIDO2 module (Syndew.Oluso.Enterprise.Fido2) on the Oluso server.
Install
npm install @syndew/oluso-plugin-fido2Peer dependencies (npm installs them with the package): @angular/common, @angular/core, @angular/forms, @angular/router, rxjs, @syndew/oluso-admin-ui, @syndew/oluso-ui-core.
Use
import { inject, provideAppInitializer } from '@angular/core';
import { PluginService } from '@syndew/oluso-ui-core';
import { FIDO2_PLUGIN, FIDO2_ACCOUNT_PLUGIN } from '@syndew/oluso-plugin-fido2';
// admin app providers
provideAppInitializer(() => {
const plugins = inject(PluginService);
plugins.registerAdminPlugin(FIDO2_PLUGIN);
plugins.markInitialized();
})
// account app providers
provideAppInitializer(() => {
const plugins = inject(PluginService);
plugins.registerAccountPlugin(FIDO2_ACCOUNT_PLUGIN);
plugins.markInitialized();
})