Tokens - #2
Open
bugsduggan wants to merge 4 commits into
Open
Conversation
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
Author
|
I think this is ready for merge now, what do you guys think? |
|
+1 I think this is really good baseline to open the discussion and further development. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.