Skip to content

Commit

Permalink
Merge pull request #32 from nens/tokenauth
Browse files Browse the repository at this point in the history
disabled session aut, added token auth
  • Loading branch information
JJFlorian authored Apr 5, 2024
2 parents 783be07 + c719c64 commit 36cb23e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def logged_in(self, request):
"email": user.email,
"organisation": user_profile.organisation.name,
"kvk": user_profile.organisation.kvk_number,
"test_to_check_new_build": None,
}
)

Expand Down
3 changes: 2 additions & 1 deletion brostar_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@
"DEFAULT_AUTHENTICATION_CLASSES": (
"nens_auth_client.rest_framework.OAuth2TokenAuthentication",
"rest_framework.authentication.BasicAuthentication",
"rest_framework.authentication.SessionAuthentication",
"rest_framework.authentication.TokenAuthentication",
# "rest_framework.authentication.SessionAuthentication",
),
}

Expand Down

0 comments on commit 36cb23e

Please sign in to comment.