-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Promises #21
base: master
Are you sure you want to change the base?
Promises #21
Conversation
1 similar comment
Pull Request Test Coverage Report for Build 202
💛 - Coveralls |
57411f2
to
e440de7
Compare
@brettz9 can you rebase master onto this please? |
b06256c
to
9de48b8
Compare
I've rebased, but want to first examine some failing linting errors (upon a further devDep update I added). |
5af3ab9
to
2b8613e
Compare
Ok, I've addressed the linting errors now. I also fixed a few minor issues in Btw, would you mind our adding typescript as a devDep if for no other reason than to get the peer dep. warnings to disappear upon local installs and updates? |
7953bbf
to
af6aa76
Compare
I've nothing against typescript being a dev dep, feel free to add it in this PR. |
K, thanks, added... |
d5c5407
to
d47df15
Compare
…nused-expressions` for chai assertions
I've updated passport local to work with skel. |
Just an FYI, I've gotten tied up in a subproject of a subproject (internationalization for a revamping of node-login--let me know if you might be interested in having something like the latter under passport-next's umbrella, btw). My hope is that after settling this, I can be ready to test passport more fully. |
Depends what it does, do you have a github repo for it? No worries it's only just November and I've been busy this month, there's no critical issues in the passport-next repos at the moment so there's no rush on anything. |
It's a fork of https://github.com/braitsch/node-login/ (with some changes thus far to improve security, update, lint/refactor, increase configurability/CLI control, UI testing/coverage, i18n, accessibility; but essentially it looks the same as that repo. |
Have you poked the upstream dev to see what's going on with maintenance? |
I had asked in one of my PRs. I've asked again, so we'll see. |
… passport-next version once merged - Linting (ESLint): Update per latest ash-nazg - Maintenance: Add `.editorconfig` - npm: Update devDeps (coveralls, linting, mocha, nyc)
Hi @rwky, Since the maintainer of I've made it quite configurable by command line, so there should be little need for projects to directly modify the source. Besides other fixes and enhancements, I've added Cypress UI testing, a UI testing framework I really love as it has a code coverage plugin that makes for more real-world type testing, and we're at 100% UI (or CLI) coverage now, and passing tests in Firefox/Chrome (including even tests to check that email notices are received). Tests should also run in Edge, but Cypress still has open (low priority) issues for supporting IE11 and Safari, so our tests wouldn't run there, but in theory the code will hopefully work in those browsers as well, as we are using a Babel/preset-env + core-js Rollup routine that should compile to a safe syntax (as well as I've got other ideas on the README of things I'd like to see done at some point, especially a privilege manager, and of course passport-next integration. If you were open to considering it for the project umbrella here, it might be a good time to take a look. Hope all is well by you and everyone here... Take care! |
Sounds good. I'll review at some point can't say when though the pandemic is causing havoc at work right now. |
* commit 'ad4f18ab7d55952612f081caa054a768f288971e': Updated npm deps Updated skel Updated funding.yml Added FUNDING.yml any other devs feel free to add yourself v3.1.0 Updated npm deps Feature: Pass instantiated strategy to authenticate. # Conflicts: # lib/middleware/authenticate.js # package-lock.json # package.json # templates/package.json.j2
* master: Updated travis node versions # Conflicts: # .travis.yml
- npm: Update devDeps
- npm: Update devDeps (including swapping eslint-config-ash-nazg peerDep. and drop need for typescript)
…plugin-markdown` and `eslint-plugin-jsdoc` - npm: Update devDeps.
- npm: Update devDeps.
- Testing Check Node 16
(will now drop one with no
done
)intuitive passing of errors (when synchronous)
serializeUser
,deserializeUser
(andtransformAuthInfo
)when giving a synchronous serialized result or a Promise (do not do
return done()
)authenticate
failureinstance
property (as in check earlier in the same method)serializeUser
,deserializeUser
,transformAuthInfo
(including allowing throwing
new Error('pass')
to pass); avoid need fordone
serializeUser
ordeserializeUser
to return non-undefined
value for sync behavior
req.logIn
and from authenticate middleware'sstrategy.success
let
in unneeded higher scopereq.logIn
andSessionStrategy
returning withoutdone
(synchronously or with Promise)
_passport
object when simulating withoutinitialize
(as it is added there)fail
methodLocalStrategy
using async/awaitcookieParser
withsession
;use current
expressSession
overconnect.session
test-one
script (to test a single file)Fixes #7.
Checklist
$ make test
) executes successfully.$ npm run-script lint
) executes successfully.