Redesign Authentication Process#58
Merged
Merged
Conversation
Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
df8ef25 to
10a2afb
Compare
Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
Sets admin authentication on authenticator to allow the addition and removal of admins without creating a new token. Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
# Conflicts: # backend/routes/forms/form.py # backend/routes/forms/submit.py
ks129
suggested changes
Mar 1, 2021
Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
jb3
requested changes
Mar 6, 2021
Member
jb3
left a comment
There was a problem hiding this comment.
A few minor things. Looks good otherwise.
Changes the name for the token used to authorize with the backend. Co-authored-by: Joe Banks <joseph@josephbanks.me>
Cleans up the authorize file, and the __init__ to maintain the project's code style. Co-authored-by: Joe Banks <joseph@josephbanks.me> Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
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.
Description
This PR restructures the way we do authentication on the backend. The most notable changes are listed below, full changelog at the bottom.
Notable Changes
Reasoning
The choice to switch to cookies for authentication is mostly due to the ability to manually set and manipulate them from the backend, something that will be useful for routes that update user information, and alleviates the need to handle those changes on the frontend.
Moving admin logic to the authenticator is mainly done to allow the addition and removal of the permission, without requiring a token refresh.
Full Changelog
In addition to the changes listed above, the following changes have been made:
PRODUCTIONenv variable. Currently only needs to be set if you are running on HTTP.