-
-
Notifications
You must be signed in to change notification settings - Fork 752
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
OAuth depends on REST provider #878
Comments
This is a limitation that I don't think can easily be changed at the moment. Maybe the generator should grey out oAuth if you don't have |
Also found that this error is thrown when you try to configure the authentication before you configure the express middleware |
This has been addressed in Feathers v4 authentication which is framework-independent. See the Authentication API and the Migration guide for more information on how to upgrade. |
Steps to reproduce
Generate an app without REST:
Generate authentication for Auth0
Navigate to
/auth/auth0
Expected behavior
Redirected to Auth0 login page.
Actual behavior
An error is thrown:
Workaround
Assign an object to the
feathers
property on thereq
object for the authentication plugin:Theory
Without the REST transport,
req.feathers
never gets assigned here: https://github.com/feathersjs/express/blob/9bc5541107bfd1ec58d3e38fb968b91832cda377/lib/rest/index.js#L33The text was updated successfully, but these errors were encountered: