init
This commit is contained in:
7
backend/utils/authentication.py
Normal file
7
backend/utils/authentication.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from rest_framework.authentication import TokenAuthentication
|
||||
|
||||
class BearerTokenAuthentication(TokenAuthentication):
|
||||
"""
|
||||
使用 'Bearer' 前缀的 Token 认证
|
||||
"""
|
||||
keyword = 'Bearer'
|
||||
Reference in New Issue
Block a user