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
URGENT ISSUE NPM 0.5.1 BREAKING CHANGE PUBLISHED!??! (Error seen: 'middleware not in use') #877
Comments
Can you please provide more details? The error message you are seeing ("middleware not in use") is not present in passport@0.5.1. It is present in prior releases of passport (0.5.0 and earlier). If you are seeing this error, it suggests that perhaps you have removed the I am unable to reproduce this on my own environment. Any further details or stack traces you could provide would help diagnose the potential issue. Thanks. |
Hi @jaredhanson, if you take a look at the 'versions' tab on npm at https://www.npmjs.com/package/passport you will see the following: 0.5.1 was published 16 hours ago. could this have been published by mistake. I'll look into this a bit more but the fact that this was published and github package.json is on v0.5.0 is strange. |
I'm seeing this issue as well. The issue occurs on passport 0.5.1 but not in 0.5.0. The
|
I switched from |
Yeah... .... is this possible if an auth provider hasn't upgraded to 0.5.1. They have a version 0.5.0 of (with the 'middleware not in use') msg but 0.5.1 is being used in the app which doesn't set req._passport? Dunno, clutching at straws.... |
Stack trace. Note: passport-azure-ad/node_modules/passport/lib/http/request.js being used. ERROR: App/20 on 48bf62950546: passport.initialize() middleware not in use |
I know, I published it :) (and no, it wasn't a mistake...) I'm confident there's no breaking changes here. @nprail's observation about If we can pinpoint the strategies that are affected, we can make a plan to resolve. |
This is helpful, thanks. What version of |
https://github.com/AzureAD/passport-azure-ad - latest 4.3.1 |
Could you paste the output of |
npm la | grep "passport" |
Thanks for that info! I've set up a reproduction case, and can confirm that this error occurs when |
Awesome! Thanks :-) |
I've published |
Hi Jared, We had to go back to 0.5.0 to avoid the issue to get a release out. I just didn't want other to question their sanity like we did this morning :-). Thanks for reacting so quickly, and not being annoyed when I didn't provide enough information initially :-). |
Thanks @jfstephe. I'll go ahead and close because both I and another developer have confirmed that 0.5.2 fixes the issue. Thanks for the report, and sorry about the causing your sanity to be questioned :). Enjoy the holiday, and if you run into anything else when upgrading, open another issue. |
Hi,
Maximum strangeness. The latest version on npm is 0.5.1 with breaking changes (e.g. req._passport isn't defined, and therefore we got 'middleware not in use' related errors as-of-today's recent builds).
Can someone take a look at this urgently please, before more people are affected?
Thanks,
John
The text was updated successfully, but these errors were encountered: