-
Notifications
You must be signed in to change notification settings - Fork 233
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
Feature/Fixed Extended User Model Support #93
Conversation
Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test." |
+1, need this functionality in the package asap |
So is this present now? How do we use it? |
+1 |
+1 |
For those -like me- who simply can not wait until this module is merged and released, I took @clockworkgr fix, I did just small tweaks and published under So thanks to @clockworkgr fix, now we can assign a specific user model. its working for me now.. $ npm uninstall --save loopback-component-passport
$ npm install --save loopback-component-passport-c Following the standard documentation from loopback should work -now it does-, the following method does what everyone would expect it to do. passportConfigurator.setupModels({
userModel: app.models.Account, // Now my users are stored in Account
userIdentityModel: app.models.AccountIdentity,
userCredentialModel: app.models.AccountCredential
}); Please consider that passing an For that reason I encourage anyone willing to fix this issue in your project ASAP by using Cheers |
Thanks @jonathan-casarrubias, I am currently using your fork of this library with the work done by @clockworkgr with an extended User model. Perhaps @loay would have some time to review this and hopefully merge so that those of us with extended user models don't get left behind? |
Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test." |
+1. Using the fork @jonathan-casarrubias made until it's merged — working perfectly. |
Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test." |
No problem guys, is good to help.. For more loopback packages and mixings follow me at twitter https://twitter.com/johncasarrubias I have been publishing other components for this framework that may be of your interest. Cheers |
+1 using the @jonathan-casarrubias fork and it works just as intended. I'll keep using it until it's merged. Thank you! |
Can one of the admins verify this patch? |
This reverts commit 8d08fbe.
This should allow for full extended model support.
All relations are defined in code by PassportConfigurator and given the correct foreignKeys which are named from the extended User Model.
The foreignKey in each relation is used to set the correct property name in all references.
Unfortunately computed property name support is not in node yet so we have to do this:
instead of :
Tests have not been rewritten for these changes