GoogleOauth2.0 First implementation
First try for GoogleOauth2.0
This commit is contained in:
8
express-server/node_modules/passport-google-oauth/.npmignore
generated
vendored
Normal file
8
express-server/node_modules/passport-google-oauth/.npmignore
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
Makefile
|
||||
docs/
|
||||
examples/
|
||||
reports/
|
||||
test/
|
||||
|
||||
.jshintrc
|
||||
.travis.yml
|
20
express-server/node_modules/passport-google-oauth/LICENSE
generated
vendored
Normal file
20
express-server/node_modules/passport-google-oauth/LICENSE
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2012-2016 Jared Hanson
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
61
express-server/node_modules/passport-google-oauth/README.md
generated
vendored
Normal file
61
express-server/node_modules/passport-google-oauth/README.md
generated
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
# passport-google-oauth
|
||||
|
||||
[](https://travis-ci.org/jaredhanson/passport-google-oauth)
|
||||
[](https://coveralls.io/r/jaredhanson/passport-google-oauth)
|
||||
[](https://codeclimate.com/github/jaredhanson/passport-google-oauth)
|
||||
[](https://david-dm.org/jaredhanson/passport-google-oauth)
|
||||
|
||||
|
||||
[Passport](http://passportjs.org/) strategies for authenticating with [Google](http://www.google.com/)
|
||||
using OAuth 1.0a and OAuth 2.0.
|
||||
|
||||
This is a meta-module that combines [passport-google-oauth1](https://github.com/jaredhanson/passport-google-oauth1)
|
||||
and [passport-google-oauth20](https://github.com/jaredhanson/passport-google-oauth2).
|
||||
It exists for backwards-compatibility with applications making use of the
|
||||
combined package. As of version 1.0.0, it is encouraged to declare dependencies
|
||||
on the module that implements the specific version of OAuth needed.
|
||||
|
||||
## Install
|
||||
|
||||
$ npm install passport-google-oauth
|
||||
|
||||
## Contributing
|
||||
|
||||
#### Tests
|
||||
|
||||
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:
|
||||
|
||||
```bash
|
||||
$ make test
|
||||
```
|
||||
|
||||
#### Coverage
|
||||
|
||||
The test suite covers 100% of the code base. All new feature development is
|
||||
expected to maintain that level. Coverage reports can be viewed by executing:
|
||||
|
||||
```bash
|
||||
$ make test-cov
|
||||
$ make view-cov
|
||||
```
|
||||
|
||||
## Support
|
||||
|
||||
#### Funding
|
||||
|
||||
This software is provided to you as open source, free of charge. The time and
|
||||
effort to develop and maintain this project is dedicated by [@jaredhanson](https://github.com/jaredhanson).
|
||||
If you (or your employer) benefit from this project, please consider a financial
|
||||
contribution. Your contribution helps continue the efforts that produce this
|
||||
and other open source software.
|
||||
|
||||
Funds are accepted via [PayPal](https://paypal.me/jaredhanson), [Venmo](https://venmo.com/jaredhanson),
|
||||
and [other](http://jaredhanson.net/pay) methods. Any amount is appreciated.
|
||||
|
||||
## License
|
||||
|
||||
[The MIT License](http://opensource.org/licenses/MIT)
|
||||
|
||||
Copyright (c) 2012-2016 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>
|
8
express-server/node_modules/passport-google-oauth/lib/index.js
generated
vendored
Normal file
8
express-server/node_modules/passport-google-oauth/lib/index.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Load modules.
|
||||
var OAuthStrategy = require('passport-google-oauth1');
|
||||
var OAuth2Strategy = require('passport-google-oauth20')
|
||||
|
||||
// Exports.
|
||||
exports.Strategy =
|
||||
exports.OAuthStrategy = OAuthStrategy;
|
||||
exports.OAuth2Strategy = OAuth2Strategy;
|
75
express-server/node_modules/passport-google-oauth/package.json
generated
vendored
Normal file
75
express-server/node_modules/passport-google-oauth/package.json
generated
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
{
|
||||
"_from": "passport-google-oauth",
|
||||
"_id": "passport-google-oauth@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-ZfUGMxkq0GJ6GLCJYAdxCdhOt20=",
|
||||
"_location": "/passport-google-oauth",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "tag",
|
||||
"registry": true,
|
||||
"raw": "passport-google-oauth",
|
||||
"name": "passport-google-oauth",
|
||||
"escapedName": "passport-google-oauth",
|
||||
"rawSpec": "",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "latest"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#USER",
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/passport-google-oauth/-/passport-google-oauth-1.0.0.tgz",
|
||||
"_shasum": "65f50633192ad0627a18b08960077109d84eb76d",
|
||||
"_spec": "passport-google-oauth",
|
||||
"_where": "C:\\Users\\Georg\\GitHub\\SmartShopper\\express-server",
|
||||
"author": {
|
||||
"name": "Jared Hanson",
|
||||
"email": "jaredhanson@gmail.com",
|
||||
"url": "http://www.jaredhanson.net/"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "http://github.com/jaredhanson/passport-google-oauth/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"passport-google-oauth1": "1.x.x",
|
||||
"passport-google-oauth20": "1.x.x"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Google (OAuth) authentication strategies for Passport.",
|
||||
"devDependencies": {
|
||||
"chai": "2.x.x",
|
||||
"make-node": "0.3.x",
|
||||
"mocha": "1.x.x"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4.0"
|
||||
},
|
||||
"homepage": "https://github.com/jaredhanson/passport-google-oauth#readme",
|
||||
"keywords": [
|
||||
"passport",
|
||||
"google",
|
||||
"auth",
|
||||
"authn",
|
||||
"authentication",
|
||||
"identity"
|
||||
],
|
||||
"license": "MIT",
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "http://opensource.org/licenses/MIT"
|
||||
}
|
||||
],
|
||||
"main": "./lib",
|
||||
"name": "passport-google-oauth",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/jaredhanson/passport-google-oauth.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha --require test/bootstrap/node test/*.test.js"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
Reference in New Issue
Block a user