
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
@huntsman-cancer-institute/authentication
Advanced tools
The auth library. This component is expected to provide authentication component and services to any HCI ng application
TODO: Separate out the parts from @hci/user.
This library provides elements for authenticating the user, protecting routes, defining that user representation in the client application, directives for controlling the UI based on aspects of the user like authorization claims and destroying the user session (logout).
A component can be imported directly though the main index.ts barrel file which groups all components in this library for easy importing.
This package provides a configurable service to interact with a server-side REST api. It is designed to be configurable
through the Angular injection framework and the usage of OpaqueTokens. See the development harnesses application module
for details or review the jsDocs on the UserService class.
CanActivateThe user service is configured through module injection. The tokens that must be defined are:
When configuring the user service it must include either USER_SESSION_ENDPOINT or SERVER_URL, LOGIN_PATH and LOGOUT_PATH, depending on the type of API to be supported (consistent vs. variable). The service will fail to instantiate if all opaque tokens are provided with values other than null. See the UserService jsdocs for details about configuring this aspect of the user feature module.
The user service also supports login success callbacks. Components may add one or more callback functions that are invoked in the order they were added upon successful authentication. This is useful when you require something special to happen after authentication, but outside of the scope of component initialization and creation.
A service to enable secured endpoints to force authentication. The tokens that must be defined are:
This component can be included with the selector hci-login-form and will provide a login form that will integrate with the UserService to authenticate a user and provide the expected form validation.
FAQs
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.13.
The npm package @huntsman-cancer-institute/authentication receives a total of 111 weekly downloads. As such, @huntsman-cancer-institute/authentication popularity was classified as not popular.
We found that @huntsman-cancer-institute/authentication 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.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.