
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
passport-salesforce-auth
Advanced tools
Passport strategy for Salesforce that includes request object passthrough.
Passport strategy for Salesforce that includes request object passthrough.
npm install passport-salesforce-auth
Aside from the standard required fields, this module allows to optionally have passport include the express request object into the verification function (through the first variable).
Parameters:
Optional Parameters:
With request
const strategy = new SalesforceStrategy(
{
clientID: '<clientID>',
clientSecret: '<clientSecret>',
callbackURL: '<callbackURL>',
passReqToCallback: true
},
async (request, accessToken, refreshToken, profile, done) => {
done(null, <user.id>);
}
);
{
provider: 'salesforce',
sub: 'https://login.salesforce.com/id/<id>/<id>',
user_id: '<id>',
organization_id: '<org_id>',
preferred_username: '<email>',
nickname: 'john',
name: 'John Barlow',
email: '<email>',
email_verified: true,
given_name: 'John',
family_name: 'Barlow',
zoneinfo: 'America/Los_Angeles',
photos: {
picture: 'https://c.na172.content.force.com/profilephoto/005/F',
thumbnail: 'https://c.na172.content.force.com/profilephoto/005/T'
},
profile: 'https://na172.salesforce.com/<id>',
picture: 'https://c.na172.content.force.com/profilephoto/005/F',
address: { country: 'US' },
urls: {
enterprise: 'https://na172.salesforce.com/services/Soap/c/{version}/<id>',
metadata: 'https://na172.salesforce.com/services/Soap/m/{version}/<id>',
partner: 'https://na172.salesforce.com/services/Soap/u/{version}/<id>',
rest: 'https://na172.salesforce.com/services/data/v{version}/',
sobjects: 'https://na172.salesforce.com/services/data/v{version}/sobjects/',
search: 'https://na172.salesforce.com/services/data/v{version}/search/',
query: 'https://na172.salesforce.com/services/data/v{version}/query/',
recent: 'https://na172.salesforce.com/services/data/v{version}/recent/',
tooling_soap: 'https://na172.salesforce.com/services/Soap/T/{version}/<id>',
tooling_rest: 'https://na172.salesforce.com/services/data/v{version}/tooling/',
profile: 'https://na172.salesforce.com/<id>',
feeds: 'https://na172.salesforce.com/services/data/v{version}/chatter/feeds',
groups: 'https://na172.salesforce.com/services/data/v{version}/chatter/groups',
users: 'https://na172.salesforce.com/services/data/v{version}/chatter/users',
feed_items: 'https://na172.salesforce.com/services/data/v{version}/chatter/feed-items',
feed_elements: 'https://na172.salesforce.com/services/data/v{version}/chatter/feed-elements'
},
active: true,
user_type: 'STANDARD',
language: 'en_US',
locale: 'en_US',
utcOffset: -28800000,
updated_at: '2020-05-29T21:39:24Z',
is_app_installed: true
}
FAQs
Passport strategy for Salesforce that includes request object passthrough.
We found that passport-salesforce-auth demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.