mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Correctly set scheme in coreapi TokenAuthentication
This commit is contained in:
parent
73ad88eaae
commit
7e76cd8695
|
@ -163,7 +163,7 @@ $('form.api-interaction').submit(function(event) {
|
|||
if (window.auth && window.auth.type === 'token') {
|
||||
// Header authentication
|
||||
options.auth = new coreapi.auth.TokenAuthentication({
|
||||
prefix: window.auth.scheme,
|
||||
scheme: window.auth.scheme,
|
||||
token: window.auth.token
|
||||
})
|
||||
} else if (window.auth && window.auth.type === 'basic') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user