-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge backend authentication into development (#73)
* start authentication * authentication start decorators * login_required should work with access token * backend authentication for most endpoints (very rough draft of functions in authentication.py) * clean_up_function * authentication cleanup * give error when access_token fails * documentation auth functions * fixed imports * actual import fix * added requests * authorize submissions * removed double checks * start testing setup backend authentication * poging testen * github tests check * user tests with authentication * auth url accessible hopefully * change authorization to be easier to deal with since it doesn't matter for tests * fixed jobCategory -> jobTitle * fix authentication * user tests zouden moeten slagen * fix authentication arguments * project tests with authentication * changed auth server id of teacher * maybe correct primary keys * second try on primary key of course relations * further test authentication * authentication on project assignment files * auth on course_join_codes and extra tests * teacher_id in function when necessary * user tests with authentication * extra testing * fixed comments * lots of testing changes * should be 1 error test now * fix tests
- Loading branch information
Showing
25 changed files
with
650 additions
and
240 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM python:3.9 | ||
RUN mkdir /auth-app | ||
WORKDIR /auth-app | ||
ADD ./test_auth_server /auth-app/ | ||
COPY auth_requirements.txt /auth-app/requirements.txt | ||
RUN pip3 install -r requirements.txt | ||
COPY . /auth-app | ||
ENTRYPOINT ["python"] | ||
CMD ["__main__.py"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
flask~=3.0.2 | ||
flask-restful | ||
python-dotenv~=1.0.1 | ||
psycopg2-binary |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.