Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@crayond_dev/idm-client-sdk
Advanced tools
IDMClient is an npm package that provides a client SDK for working with the IDM (Identity Management) service. It allows you to interact with the service and use it.
To install IDMClient, you can use npm or yarn:
npm install @crayond_dev/idm-client-sdk
# or
yarn add @crayond_dev/idm-client-sdk
import IDMClient from "@crayond_dev/idm-client-sdk";
# or
import { IDMClient } from "@crayond_dev/idm-client-sdk";
To create an instance of IDMClient,
const params = {
apiKey: "<YOUR_API_KEY>", // Replace with your API key
};
const idmClient = new IDMClient(params);
The IDMClient class exposes a method called getRoles, which allows you to fetch the roles configured.
idmClient.getRoles()
.then((roles) => {
# Your Code here
})
.catch((error) => {
console.error(error);
});
The IDMClient class exposes a method called initialize, which fetches the permission from the service and stores in the storage option provided. Default storage will be localStorage. Supported storage types - LocalStorage, SessionStorage, AsynStorage.
idmClient.initialize("<Role_ID>")
.then((response) => {
# Your Code here
})
.catch((error) => {
console.error(error);
});
The IDMClient class exposes a method called validate, which validates the access for the given repoId and access type.
idmClient.validate(["<REPO_ID>", "<REPO_ID>", ...], ["create", "read", "update", "delete"])
.then((response) => {
# Your Code here
})
.catch((error) => {
console.error(error);
});
FAQs
## Description
The npm package @crayond_dev/idm-client-sdk receives a total of 16 weekly downloads. As such, @crayond_dev/idm-client-sdk popularity was classified as not popular.
We found that @crayond_dev/idm-client-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.