Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
oniyi-http-plugin-credentials
Advanced tools
A plugin for oniyi-http-client for automatic attachment of user credentials
A plugin for oniyi-http-client for automatic attachment of user credentials
This plugin is designed to work with the third-party login component of loopback. The third-party login component is heavily based on passportjs. To make things work more broadly, I also wrote a loopback extension to allow the usage of custom auth schemes oniyi-loopback-passport-custom-schemes.
$ npm install --save oniyi-http-plugin-credentials
const OniyiHttpClient = require('oniyi-http-client');
const oniyiHttpPluginCredentials = require('oniyi-http-plugin-credentials');
const clientOptions = {};
const httpClient = new OniyiHttpClient(clientOptions);
const pluginOptions = {};
const plugin = oniyiHttpPluginCredentials(pluginOptions);
httpClient.use(plugin);
The oniyi-http-plugin-credentials
module exports a factory function that takes a single options argument.
available options are:
user
property should be removed from the request optionscredentials
, callback(err, isExpired)
)strategy
, currentCredentials
, callback(err, freshCredentials)
)credentials
, callback(err, authParams)
)/-link$/.test(pluginOptions.providerName) ? 'credentials' : 'identities'
, (string, optional) - name of the relation on req.user
that we should search for user credentialsAll options of type function
have default values that can with OAuth2 strategies.
MIT © Benjamin Kroeger
FAQs
A plugin for oniyi-http-client for automatic attachment of user credentials
The npm package oniyi-http-plugin-credentials receives a total of 3 weekly downloads. As such, oniyi-http-plugin-credentials popularity was classified as not popular.
We found that oniyi-http-plugin-credentials 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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.