Skip to content
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

oauth2app.models.Client object in database #48

Open
anas-aldrees opened this issue Jun 2, 2013 · 0 comments
Open

oauth2app.models.Client object in database #48

anas-aldrees opened this issue Jun 2, 2013 · 0 comments

Comments

@anas-aldrees
Copy link

The database table for oauth2app.models.Client object have a client_name and client_secret attributes, also it have a user_id which representing the client owner (resource owner).
And that will result a duplication in client_name and client_secret

i.e: CLIENT TABLE


id | name | user_id | description | secret .......


1 | android twitter | 123 | twitter client for android | abcd ........


2 | android twitter | 455 | twitter client for android | abcd ........


3 | android twitter | 789 | twitter client for android | abcd ........


4 | android twitter | 1011 | twitter client for android | abcd ........


as you can see, the name, description, secret attributes are duplicated because the user_id attribute is changed. and that duplication will use a lot of hard disk space.
I hope you understand me :)
Please correct me if i miss understood the source-code

Thanks:)

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

No branches or pull requests

1 participant