Skip to content

Commit 015e3c2

Browse files
authored
Merge pull request #9 from pyobs/develop
v.1.2.1
2 parents 212fc67 + ef3e43b commit 015e3c2

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

pyobs_archive/authentication/backends.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class BearerAuthentication(authentication.BaseAuthentication):
4949
the odin auth server
5050
"""
5151
def authenticate(self, request):
52+
print('bearer')
5253
auth_header = request.META.get('HTTP_AUTHORIZATION', '')
5354
if 'Bearer' not in auth_header:
5455
return None
5.88 KB
Loading

pyobs_archive/frontend/static/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Utils = {
3939

4040
function setRequestHeader(xhr) {
4141
if (localStorage.getItem('token')) {
42-
xhr.setRequestHeader('Authorization', 'Token ' + localStorage.getItem('token'));
42+
xhr.setRequestHeader('Authorization', 'Bearer ' + localStorage.getItem('token'));
4343
}
4444
}
4545

0 commit comments

Comments
 (0)