Skip to content

Tokens - #2

Open
bugsduggan wants to merge 4 commits into
091labs:masterfrom
bugsduggan:tokens
Open

Tokens#2
bugsduggan wants to merge 4 commits into
091labs:masterfrom
bugsduggan:tokens

Conversation

@bugsduggan

Copy link
Copy Markdown

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
Copy Markdown
Author

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

@jokke-ilujo

Copy link
Copy Markdown

+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