hiidef / oauth2app

Django OAuth 2.0 Server App. Please fork and improve!
https://github.com/hiidef/oauth2app
MIT License
271 stars 115 forks source link

oauth2app.models.Client object in database #48

Open anas-aldrees opened 11 years ago

anas-aldrees commented 11 years ago

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:)