Gathering detailed insights and metrics for passport-oauth1
Gathering detailed insights and metrics for passport-oauth1
Gathering detailed insights and metrics for passport-oauth1
Gathering detailed insights and metrics for passport-oauth1
passport-google-oauth1
Google (OAuth 1.0) authentication strategy for Passport.
@acceleratxr/passport-oauth1
OAuth 1.0 authentication strategy for Passport.
passport-oauth1-profile
OAuth 1.0 authentication strategy for Passport.
connekt-passport-oauth1
OAuth 1.0 authentication strategy for Passport.
OAuth 1.0 authentication strategy for Passport and Node.js.
npm install passport-oauth1
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.6
Supply Chain
99
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (99.93%)
Makefile (0.07%)
Total Downloads
63,502,759
Last Day
14,195
Last Week
248,930
Last Month
1,141,368
Last Year
11,847,300
MIT License
24 Stars
103 Commits
30 Forks
4 Watchers
8 Branches
7 Contributors
Updated on Sep 28, 2024
Minified
Minified + Gzipped
Latest Version
1.3.0
Package Id
passport-oauth1@1.3.0
Unpacked Size
28.41 kB
Size
8.67 kB
File Count
11
NPM Version
6.14.12
Node Version
14.16.1
Published on
Mar 01, 2023
Cumulative downloads
Total Downloads
3
4
General-purpose OAuth 1.0 authentication strategy for Passport.
This module lets you authenticate using OAuth in your Node.js applications. By plugging into Passport, OAuth-based sign in can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express.
Note that this strategy provides generic OAuth support. In many cases, a provider-specific strategy can be used instead, which cuts down on unnecessary configuration, and accommodates any provider-specific quirks. See the list for supported providers.
Developers who need to implement authentication against an OAuth provider that is not already supported are encouraged to sub-class this strategy. If you choose to open source the new provider-specific strategy, please add it to the list so other people can find it.
:heart: Sponsors
Advertisement
Learn OAuth 2.0 - Get started as an API Security Expert
Just imagine what could happen to YOUR professional career if you had skills in OAuth > 8500 satisfied students
$ npm install passport-oauth1
The OAuth authentication strategy authenticates users using a third-party
account and OAuth tokens. The provider's OAuth endpoints, as well as the
consumer key and secret, are specified as options. The strategy requires a
verify
callback, which receives a token and profile, and calls cb
providing a user.
passport.use(new OAuth1Strategy({
requestTokenURL: 'https://www.example.com/oauth/request_token',
accessTokenURL: 'https://www.example.com/oauth/access_token',
userAuthorizationURL: 'https://www.example.com/oauth/authorize',
consumerKey: EXAMPLE_CONSUMER_KEY,
consumerSecret: EXAMPLE_CONSUMER_SECRET,
callbackURL: "http://127.0.0.1:3000/auth/example/callback",
signatureMethod: "RSA-SHA1"
},
function(token, tokenSecret, profile, cb) {
User.findOrCreate({ exampleId: profile.id }, function (err, user) {
return cb(err, user);
});
}
));
Use passport.authenticate()
, specifying the 'oauth'
strategy, to
authenticate requests.
For example, as route middleware in an Express application:
app.get('/auth/example',
passport.authenticate('oauth'));
app.get('/auth/example/callback',
passport.authenticate('oauth', { failureRedirect: '/login' }),
function(req, res) {
// Successful authentication, redirect home.
res.redirect('/');
});
The test suite is located in the test/
directory. All new features are
expected to have corresponding test cases. Ensure that the complete test suite
passes by executing:
1$ make test
All new feature development is expected to have test coverage. Patches that increse test coverage are happily accepted. Coverage reports can be viewed by executing:
1$ make test-cov 2$ make view-cov
Copyright (c) 2011-2016 Jared Hanson <http://jaredhanson.net/>
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
9 existing vulnerabilities detected
Details
Reason
Found 1/22 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
28.1%
14,195
Compared to previous day
Last Week
-11.8%
248,930
Compared to previous week
Last Month
-2.1%
1,141,368
Compared to previous month
Last Year
9%
11,847,300
Compared to previous year