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

Use foreign keys in Token model #4

Open
bugsduggan opened this issue Apr 19, 2014 · 0 comments
Open

Use foreign keys in Token model #4

bugsduggan opened this issue Apr 19, 2014 · 0 comments

Comments

@bugsduggan
Copy link

The token currently just stores the user id without any reference to the User table.

bugsduggan pushed a commit to bugsduggan/uamhnach that referenced this issue Apr 20, 2014
bugsduggan pushed a commit to bugsduggan/uamhnach that referenced this issue Apr 20, 2014
This adds 4 tables to the database. One each for Users, Groups,
Permissions and Tokens.

Users may request a token, check if the token is valid and revoke a token.

This token may be passed in with the header X-Auth-Token and used to validate
that the user has the required permissions to enact the request.

The db_create.py script builds the database, adds the basic set of permissions
and creates 2 groups, nobody (with no permissions) and superuser (with all
permissions). This script also creates the first user in the system and adds
them to the superuser group.

fixes 091labs#3
fixes 091labs#4
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