We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 212fc67 + ef3e43b commit 015e3c2Copy full SHA for 015e3c2
pyobs_archive/authentication/backends.py
@@ -49,6 +49,7 @@ class BearerAuthentication(authentication.BaseAuthentication):
49
the odin auth server
50
"""
51
def authenticate(self, request):
52
+ print('bearer')
53
auth_header = request.META.get('HTTP_AUTHORIZATION', '')
54
if 'Bearer' not in auth_header:
55
return None
pyobs_archive/frontend/static/img/logo.gif
5.88 KB
pyobs_archive/frontend/static/js/app.js
@@ -39,7 +39,7 @@ const Utils = {
39
40
function setRequestHeader(xhr) {
41
if (localStorage.getItem('token')) {
42
- xhr.setRequestHeader('Authorization', 'Token ' + localStorage.getItem('token'));
+ xhr.setRequestHeader('Authorization', 'Bearer ' + localStorage.getItem('token'));
43
}
44
45
0 commit comments