Skip to content

Commit

Permalink
Merge pull request #1 from passport-next/intial
Browse files Browse the repository at this point in the history
Initial conversion to passport-next
  • Loading branch information
adamhathcock authored Apr 23, 2019
2 parents 961c508 + 48b0c7a commit 5d1be0f
Show file tree
Hide file tree
Showing 7 changed files with 286 additions and 24 deletions.
11 changes: 3 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
language: "node_js"
node_js:
- "5"
- "4"
- "3" # io.js
- "2" # io.js
- "1" # io.js
- "0.12"
- "10"
- "8"
- "6"


before_install:
Expand All @@ -17,5 +14,3 @@ script:

after_success:
- "make report-cov"

sudo: false
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 1.0.0 (2019-04-23)

* Added CHANGELOG.md @adamhathcock
* Updated deps @adamhathcock
* Updated README.md package.json etc for migration to passport-next @adamhathcock
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# passport-oauth2-client-public

This is a Strategy that allows only a `client_id` in the body of the request for verification. This is intended just for the [OAuth2 PKCE Extension](https://github.com/passport-next/oauth2orize-pkce) protecting the `Token` endpoint.
2 changes: 1 addition & 1 deletion lib/strategy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var passport = require('passport-strategy')
var passport = require('@passport-next/passport-strategy')
, util = require('util');


Expand Down
260 changes: 260 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "passport-oauth2-client-public",
"version": "0.0.1",
"name": "@passport-next/passport-oauth2-client-public",
"version": "1.0.0",
"description": "OAuth 2.0 public client authentication strategy for Passport.",
"keywords": [
"passport",
Expand All @@ -14,16 +14,15 @@
"api"
],
"author": {
"name": "Jared Hanson",
"email": "[email protected]",
"url": "http://www.jaredhanson.net/"
"name": "Adam Hathcock",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "git://github.com/jaredhanson/passport-oauth2-client-public.git"
"url": "git://github.com/passport-next/passport-oauth2-client-public.git"
},
"bugs": {
"url": "http://github.com/jaredhanson/passport-oauth2-client-public/issues"
"url": "http://github.com/passport-next/passport-oauth2-client-public/issues"
},
"license": "MIT",
"licenses": [
Expand All @@ -34,12 +33,12 @@
],
"main": "./lib",
"dependencies": {
"passport-strategy": "^1.0.0"
"@passport-next/passport-strategy": "^1.1.0"
},
"devDependencies": {
"make-node": "^0.3.0",
"mocha": "^2.0.0",
"chai": "^3.0.0"
"make-node": "0.4.x",
"mocha": "5.x.x",
"chai": "4.x.x"
},
"scripts": {
"test": "node_modules/.bin/mocha test/*.test.js"
Expand Down
9 changes: 5 additions & 4 deletions test/package.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/* global describe, it */

var pkg = require('..');
var strategy = require('..');
var expect = require('chai').expect;


describe('passport-oauth2-client-public', function() {

it('should export hello world', function() {
expect(pkg.hello).to.equal('world');
});
it('should export Strategy constructor directly from package', function() {
expect(strategy).to.be.a('function');
expect(strategy).to.equal(strategy.Strategy);
});

});

0 comments on commit 5d1be0f

Please sign in to comment.