Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Strategy for subapp #9

Closed
anrn opened this issue Jan 29, 2017 · 2 comments
Closed

Strategy for subapp #9

anrn opened this issue Jan 29, 2017 · 2 comments

Comments

@anrn
Copy link

anrn commented Jan 29, 2017

If I try to use app.configure(local()) strategy in subapp (not in root app) it doesn't register strategy.
You can make it directly — app.passport.use( new LocalStrategy ... even in subapp and it's working, but I'm not sure it's right way.

@anrn anrn changed the title Strategy for sub app Strategy for subapp Jan 29, 2017
@buske
Copy link

buske commented Feb 16, 2017

After running into a similar problem and asking on the slack channel, the answer was to call subapp.setup(app) in the root app, as per: https://docs.feathersjs.com/middleware/mounting.html#sub-apps

@ekryski
Copy link
Member

ekryski commented Jun 22, 2017

@anrn that is the way to do it, however we're also going to start to discourage the use of sub-apps as we push towards Feathers v3 and de-couple from Express.

Going to close this but let us know if that doesn't work and we can revisit the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants