-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
passportConfigurator userModel not responding to change #1750
Comments
Please post questions at https://groups.google.com/forum/#!forum/loopbackjs. See https://github.com/strongloop/loopback/wiki/Questions for more details. |
This seems like an issue to me. The lack of documentation makes it hard to tell, but setting a I realize now that this made it seem like a question, but I believe it to be behaving incorrectly. |
Well, regardless, I made an issue here: |
Well, so the documentation here: https://apidocs.strongloop.com/loopback-component-passport/#passportconfigurator-prototype-setupmodels is not very clear, but I believe I am using it correctly in the example above. It seems like it is being overwritten by the default User class. |
@ianseyer Have you read Third-party login (Passport)? That should provide better information than just the API doc. Also, see https://github.com/strongloop-community/loopback-example-passport. |
Yes, I have read both. Both use the default user class, and there isn't any explicit "here is how you use your own user model" section. Can I get confirmation that what I'm asking to do is possible? Or an explanation of the purpose of |
Reading the documentation, I see that it creates HOWEVER, creating a fb user still just adds it to the user table, and |
Thanks @ianseyer -- I will add a note to the docs to clarify. Since you resolved your problem, I'll close this issue. |
Sorry, Misfire. Not fixed. |
@crandmck just want to make sure you see that this is NOT fixed. My mistake. |
Thanks @ianseyer. I'm not clear on whether this is a doc issue or if there is a problem with the passport component or the example app. |
The issue, at this point, is a passport component issue. Though it is hard to tell, due to the sparse documentation around changing On Mon, Oct 26, 2015 at 3:33 PM Rand McKinney [email protected]
|
@raymondfeng Could you take a look at this, please? |
@crandmck The problem is hard-coded relation in models user-identity.json and user-credential.json. At the moment, for my experience, use of this component is strictly dependent built-in loopback User model or custom model with the same name for model and foreing key (for relation). @ianseyer if you use custom model, is necessary to define custom model for identity and credentials. In the fact copy the model that found in directory model and then modify relations properly. |
I see. So can I get confirmation that this is infact an issue, and |
@superkhau I believe this falls into triage? IAC, I don't think it's a doc issue, but someone in eng. should really have a look. If this is a bug in |
I made one there, but it was closed by Simon. On Thu, Oct 29, 2015 at 2:08 PM Rand McKinney [email protected]
|
@ianseyer Which issue was this? Let's reopen it if you believe it to be a legitimate bug. Please provide a sample repo with steps to reproduce on my end to confirm it (if you have no already done so). |
Oh! Sorry, it wasn't you. It was superkhau. strongloop/loopback-component-passport#95 I will make a repo soon. On Thu, Oct 29, 2015 at 2:44 PM Simon Ho [email protected] wrote:
|
LOL, I am superkhau. I marked that issue as a duplicate of this issue. Are you saying that issue is different from this one? |
XD My email changes it to your name proper. It is the same issue, however, the On Thu, Oct 29, 2015 at 2:54 PM Simon Ho [email protected] wrote:
|
Haha, its all good. You are right though, we should reopen the other issue and close this one as the duplicate. Fixing. |
Duplicate of strongloop/loopback-component-passport#95. |
Hi there!
I am using the facebook passport component, to handle user signup via facebook.
It is fully functional, however:
despite my
server.js
containing:the users are still created in the standard
User
table.How would I go about changing this?
The text was updated successfully, but these errors were encountered: