
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@tilde-nlp/ngx-user-access
Advanced tools
This library is designed to include shared user access services, such as Authentication, Permissions, and Keycloak. Here, we store all the user-related resources used across different projects.
This library is designed to include shared user access services, such as Authentication, Permissions, and Keycloak. Here, we store all the user-related resources used across different projects.
To integrate this library into your project, add @tilde-nlp/ngx-user-access to your dependencies.
Review the UserAccessConfig interface and supply the required fields in the configuration token USER_ACCESS_CONFIG_TOKEN.
To configure custom user permissions you should provide UserConfigurationService in your application.
The KEYCLOAK_PROVIDER should be provided in each app config, but only after you've set up USER_ACCESS_CONFIG_TOKEN.
Required configuration example below:
` class AppUserCustomConfigurationService implements UserCustomConfiguration { updateUserConfiguration(currentConfiguration: UserConfiguration, newConfiguration: UserConfiguration): UserConfiguration { let configuration: UserConfiguration = {};
return configuration;
}
}
function USER_CUSTOM_CONFIGURATION_SERVICE_PROVIDER() { return { provide: UserConfigurationService, useClass: AppUserCustomConfigurationService }; }
function USER_ACCESS_CONFIG_PROVIDER() { return { provide: USER_ACCESS_CONFIG_TOKEN, useFactory: (configService: ConfigurationService): UserAccessConfig => { const config = configService.configuration;
// kc token makes strapi return 401, so no need to send it to strapi.
if (!config?.strapi?.disabled) {
EXCLUDE_AUTH_HEADERS_URLS.push(config.strapi!.url!);
}
return {
keycloak: { ...config.auth.keycloak!, bearerExcludedUrls: EXCLUDE_AUTH_HEADERS_URLS },
plans: Object.values([]),
subscriptions: config.subscription,
alwaysAuth: config.auth.alwaysAuth
};
},
deps: [ConfigurationService]
};
const USER_ACCESS_PROVIDERS: Provider[] = [USER_ACCESS_CONFIG_PROVIDER(), USER_CUSTOM_CONFIGURATION_SERVICE_PROVIDER()];
providers: [ KeycloakService, USER_ACCESS_PROVIDERS, provideAppInitializer(async () => { return await KEYCLOAK_PROVIDER() }), ] `
FAQs
This library is designed to include shared user access services, such as Authentication, Permissions, and Keycloak. Here, we store all the user-related resources used across different projects.
We found that @tilde-nlp/ngx-user-access demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.