
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
brightspace-auth-provisioning
Advanced tools
Library for making assertions against an auth service.
npm install brightspace-auth-provisioning --save
var AuthTokenProvisioner = require('brightspace-auth-provisioning');
var provisioner = new AuthTokenProvisioner({
issuer: 'ece083bc-e6ac-11e4-8e1b-54ee750fffa4',
keyLookup: function () {
return Promise.resolve({
kid: '0a9e68f6-e6ad-11e4-8ab6-54ee750fffa4',
key: KeyObject,
alg: 'ES256'
});
}
});
var tokenPromise = provisioner
.provisionToken({
user: '32647',
impersonator: '30882',
tenant: '5492ff8a-e6ad-11e4-84d6-54ee750fffa4',
scopes: ['updates:feed-items:read'],
fsid: 'eyJhbGciOiJIUzI1Ni...'
});
new AuthTokenProvisioner(Object options)
-> AuthTokenProvisioner
String
(required)The String
used to identify your local issuer/service. This must be registered
with the auth service.
()
-> Promise<Object>
(required)A function which returns a Promise
to an Object
representing your current
signing key. The object must have the properties kid
, which is a unique
String
, and key
which is the node.js crypto KeyObject representing the private key. The
object should also have a String
property alg
representing the signing
algorithm to use. alg
must be one of ES256
, ES384
, ES512
or RS256
.
String
(https://auth.brightspace.com/core)You may optionally specifiy the endpoint of the remote issuer, or auth service.
AbstractProvisioningCache
(AbstractProvisioningCache)You may optionally specify an instance of an object inheriting from
AuthTokenProvisioner.AbstractProvisioningCache
.
.provisionToken(Object options)
-> Promise<String>
Given the set of claims provided, will make an assertion against the auth service. Returns a promise to the encoded access token.
Array<String>
(required)The set of scopes to include in the auth token. The contained scopes should
fit our semantic scope formatting: <group>:<resource>:<permission>
.
String
The GUID of the tenant this token is meant for.
String
The id of the user this token is meant for. Requires the tenant option has been set.
String
The id of the active user, who is impersonating user. Requires the user option has been set.
String
The Caliper FSID associated with this token.
.AbstractProvisioningCache
Available on the export is a reference to the AbstractProvisioningCache
FAQs
Make token assertions against an auth service
The npm package brightspace-auth-provisioning receives a total of 5,522 weekly downloads. As such, brightspace-auth-provisioning popularity was classified as popular.
We found that brightspace-auth-provisioning demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.