forked from jaredhanson/passport-oauth2-client-public
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from passport-next/intial
Initial conversion to passport-next
- Loading branch information
Showing
7 changed files
with
286 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
@@ -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": [ | ||
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
|
||
}); |