0.0.1 • Published 6 years ago
@wavenet/ngx-wvn-spw v0.0.1
ngx-wvn-spw
Wavenet Angular library for SPW application.
Features
GestIA
User info access
In order to load the user provided by GestIA, you can use the GestiaService which initializes the AuthenticationService from ngx-wvn-core.
At application startup, init the service and provide a RoleFinder used to add roles to GestIA user.
this.gestiaService.init(new class implements RoleFinder {
find(userId: any): Array<string> {
return myCustomUserRolesMapping();
}
});Once the GestiaService is initialized, you can simply use the AuthenticationService for further user info access.
Getting started
Install NPM dependency by using this command:
npm install -s @wavenet/ngx-wvn-spwYou also have to install peer dependencies such as:
- ngx-wvn-core
0.0.1
6 years ago