-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
User Info in separate table or removed #53
Comments
@UrbanViking - you're free to override this functionality. Here is the method that assigns these attributes during OAuth login/signup. You can extend the default controllers using these instructions. Different applications will always have different needs. The current implementation covers 90% of the use cases that I've encountered. Adding a But it should be easy enough to extend the |
@lynndylanhurley - I agree that I can easily override this. However, I would rather be able to use Devise-Token-Auth without making too many changes. You have done a great job with Ng-Token-Auth and Devise-Token-Auth. But mixing partial user info into the user table and asking developers to customize the controllers to add additional user info, seems wrong to me. In the same way, it seems wrong to store email address in UID attribute when you have an email attribute within same table. I know this is a workaround to get an unique key per user whether they choose Email or OAuth. Why not simple remove user info from user table and leave it up the developer how to implement this - then we would not have unused attributes in user table and controllers - most apps would need more user info anyway. If email isn't used, perhaps this should removed - it would make it easier to understand the single authentication either Email or OAuth. It would also be awesome, if email confirmation was optional - so we didn't have to exclude it. If the developer wants email confirmation, s/he can include instead. Then you would also be aligned with Devise. |
@lynndylanhurley - I am not suggesting to remove the user table entirely, but removing the extra attributes that aren't necessary for authentication and let the developer decide how to implement user data. I like the idea of single authentication as default. I just don't like I'm apologize if I wasn't clear in my comments. |
@UrbanViking - thanks for this feedback. I'm sorry that I haven't explained my position on this very well - I'll try to elaborate here. I've been rolling this issue around in my head for some time - it actually relates to the issue of multiple provider authentication (#23). For my own purposes, and for 90% of use-cases, I would like to keep the data model as simple as possible. I would like the
The current implementation was built to support these considerations. I think that removing the I agree that the |
Ahh sorry - I accidentally hit the submit button before that last comment was finished, and I just saw that you replied to it. 😵 |
@lynndylanhurley - no worries. I understand your perspective.
|
Could these attributes be removed or added to its own table e.g. Profile
When the developer can decide on which User Info s/he want to have in the app. Most apps would likely have for User Info stored specific the app and by removing these attributes from User table, we can keep the User table clean.
The text was updated successfully, but these errors were encountered: