Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@rentspree/oauth2orize-facebook
Advanced tools
Facebook token exchange middleware for OAuth2 server toolkit `oauth2orize`.
Facebook token exchange middleware for OAuth2 server toolkit oauth2orize.
Inspired from oauth2orize's built-in exchanger password.
npm i oauth2orize-facebook -S
Before using this package, you should enable the 'Require App Secret' option in the advanced settings of your Facebook app. You also must provide the app secret by exporting it
export FB_APP_SECRET={your Facebook app secret}
or by adding FB_APP_SECRET={your Facebook app secret} to your .env file.
Then, you can have fun
var oauth2orize = require('oauth2orize');
var oauth2orizeFacebook = require('oauth2orize-facebook');
var server = oauth2orize.createServer();
server.exchange(oauth2orizeFacebook(['email', 'first_name', 'last_name'], function (client, profile, scope, cb) {
// Get access token from client and Facebook profile information.
var accessToken = 'access token';
// Refresh token could be returned if it is supported by your OAuth2 server.
// If not available, just pass `null` as argument.
var refreshToken = 'optional refresh token';
// Additional parameters to return in response. Pass `null` if not available.
var params = {
'welcome_to': 'our OAuth2 server',
'glad_to': 'meet you'
};
cb(null, accessToken, refreshToken, params);
// Or just `cb(null, accessToken);` is enough.
}));
MIT licensed.
FAQs
Facebook token exchange middleware for OAuth2 server toolkit `oauth2orize`.
The npm package @rentspree/oauth2orize-facebook receives a total of 7 weekly downloads. As such, @rentspree/oauth2orize-facebook popularity was classified as not popular.
We found that @rentspree/oauth2orize-facebook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.