-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '5-oauth-authentication' into milestone-1-staging
merging together auth and api branches for staging before merging into develop
- Loading branch information
Showing
12 changed files
with
94 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ class UserAdmin(BaseUserAdmin): | |
'password', | ||
'first_name', | ||
'last_name', | ||
'course', | ||
'role', | ||
)}), | ||
) | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
Django~=4.2.11 | ||
coverage~=6.3 | ||
Django~=5.0.2 | ||
django-cors-headers~=3.14.0 | ||
django-extensions==3.2.3 | ||
django_microsoft_auth==3.0.1 | ||
djangorestframework-simplejwt~=5.2.2 | ||
djangorestframework~=3.14.0 | ||
drf-yasg==1.21.7 | ||
flake8==7.0.0 | ||
psycopg2-binary~=2.9.5 | ||
pytz~=2022.7.1 | ||
pyyaml==6.0.1 | ||
uritemplate==4.1.1 | ||
drf-yasg==1.21.7 |
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,17 @@ | ||
{% load i18n %} | ||
|
||
<html> | ||
<body> | ||
<p>{% trans "This window should automatically close BUT ITs in microsoft. If it does not, it should be save to close after a few seconds." %}</p> | ||
<pre>{{ message }}</pre> | ||
<script> | ||
document.addEventListener("DOMContentLoaded", function(event) { | ||
// post message to parent window | ||
console.log("posting message to {{ base_url }}"); | ||
//console.log(window.parent.opener); | ||
window.parent.postMessage({{ message }}, "{{ base_url }}"); | ||
window.close(); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import os | ||
|
||
from django.contrib.sites.models import Site | ||
|
||
|
||
def run(): | ||
debug = int(os.environ.get("DEBUG", default=0)) | ||
domain = 'localhost:8000' if debug else 'sel2-1.ugent.be' | ||
print(domain) | ||
Site.objects.all().delete() | ||
Site.objects.create(pk=1, domain=domain, name='localhost') |