Skip to content

Commit

Permalink
Merge pull request #23 from SELab-2/authentication
Browse files Browse the repository at this point in the history
Fixed small bug
  • Loading branch information
LGDTimtou authored Mar 4, 2024
2 parents 0c55080 + 6873a6a commit b55fe40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified api/views/__pycache__/views.cpython-311.pyc
Binary file not shown.
6 changes: 3 additions & 3 deletions api/views/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.http import JsonResponse
from django.http import JsonResponse, HttpResponse
from api.utils import get_graph_token
from django.shortcuts import redirect

Expand All @@ -9,9 +9,9 @@ def login_redirect(request):
"""
graph_token = get_graph_token()

#HttpResponse(f"Logged in as {request.user.first_name} {request.user.last_name}, with email: {request.user.username} \nWith token: {graph_token['access_token']}")
return HttpResponse(f"Logged in as {request.user.first_name} {request.user.last_name}, with email: {request.user.username} \nWith token: {graph_token['access_token']}")

return redirect("https://sel2-4.be")
return redirect("https://sel2-4.ugent.be")

def microsoft_association(request):
return JsonResponse({"associatedApplications": [{ "applicationId": "239ce609-e362-4cf6-919f-97e6935ef5f5" }]})

0 comments on commit b55fe40

Please sign in to comment.