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

Tokens #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Tokens #2

wants to merge 4 commits into from

Conversation

bugsduggan
Copy link

No description provided.

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
@bugsduggan
Copy link
Author

I think this is ready for merge now, what do you guys think?

@jokke-ilujo
Copy link

+1

I think this is really good baseline to open the discussion and further development.

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

Successfully merging this pull request may close these issues.

2 participants