Skip to content

oauth2app.models.Client object in database #48

Description

@anas-aldrees

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions